Skip to content

Commit 3841ec8

Browse files
committed
+fix
1 parent 60593d6 commit 3841ec8

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
@@ -179,8 +179,8 @@ segmentize(method::Manifold, geom, max_distance::Real; threaded = _False()) = se
179179
# generic implementation
180180
function segmentize(method::Manifold, geom; max_distance, threaded::Union{Bool, BoolsAsTypes} = _False())
181181
@assert max_distance > 0 "`max_distance` should be positive and nonzero! Found $(method.max_distance)."
182-
segmentize_function(x) = _segmentize(method, x; max_distance)
183-
return apply(segmentize_function, TraitTarget(GI.LinearRingTrait(), GI.LineStringTrait()), geom; threaded)
182+
_segmentize_function(geom) = _segmentize(method, geom, GI.trait(geom); max_distance)
183+
return apply(_segmentize_function, TraitTarget(GI.LinearRingTrait(), GI.LineStringTrait()), geom; threaded)
184184
end
185185

186186
function segmentize(method::SegmentizeMethod, geom; threaded::Union{Bool, BoolsAsTypes} = _False())

0 commit comments

Comments
 (0)