Skip to content

Commit e6e2791

Browse files
committed
Fix segmentize
1 parent ac97e0c commit e6e2791

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/transformations/segmentize.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ segmentize(method::Manifold, geom, max_distance::Real; threaded = False()) = seg
178178

179179
# generic implementation
180180
function segmentize(method::Manifold, geom; max_distance, threaded::Union{Bool, BoolsAsTypes} = False())
181-
if max_distance > 0
182-
throw(ArgumentError("`max_distance` should be positive and nonzero! Found $(method.max_distance)."))
181+
if max_distance <= 0
182+
throw(ArgumentError("`max_distance` should be positive and nonzero! Found $(max_distance)."))
183183
end
184184
_segmentize_function(geom) = _segmentize(method, geom, GI.trait(geom); max_distance)
185185
return apply(_segmentize_function, TraitTarget(GI.LinearRingTrait(), GI.LineStringTrait()), geom; threaded)

0 commit comments

Comments
 (0)