Skip to content

Commit 394d6d9

Browse files
committed
Merge branch 'sd/polygons' of github.com:JuliaGeometry/GeometryBasics.jl into sd/polygons
2 parents 693cd7c + 1e75649 commit 394d6d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/basic_types.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ function Polygon(exterior::AbstractVector{P}, interior::AbstractVector{<:Abstrac
292292
# if we just map over it, it won't infer the element type correctly!
293293
int = typeof(ext)[]
294294
foreach(x-> push!(int, LineString(x)), interior)
295-
return Polygon(LineString(exterior), int)
295+
return Polygon(ext, int)
296296
end
297297

298298
function coordinates(polygon::Polygon{N, T, PointType}) where {N, T, PointType}

0 commit comments

Comments
 (0)