Skip to content

Commit dad3e82

Browse files
committed
fixes #2498
1 parent 009cc9b commit dad3e82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/break_antimeridian.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ st_break_antimeridian.sf = function(x, lon_0=0, tol=0.0001, ...) {
8080
}
8181
s2_status = sf_use_s2()
8282
sf_use_s2(FALSE) # avoid s2 because we need a planar bounding box
83+
on.exit(sf_use_s2(s2_status))
8384
res = st_intersection(x, bb1)
84-
sf_use_s2(s2_status)
8585
st_crs(res) = st_crs(x)
8686
res
8787
}

0 commit comments

Comments
 (0)