Skip to content

Commit 0331ada

Browse files
committed
Fixed #1035
1 parent f70461f commit 0331ada

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

geo/dll/src/BoostGeometry.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,6 +1055,9 @@ struct BufferLineStringOperator : public AbstrBufferOperator
10551055
auto lineString = geos_create_multi_linestring<P>(lineStringRef.begin(), lineStringRef.end());
10561056
auto bufferedLineString = lineString->buffer(bufferDistance, (pointsPerCircle + 3) / 4);
10571057
geos_assign_geometry(resData[i], bufferedLineString.get());
1058+
// move to next geometry
1059+
if (++i == n)
1060+
return;
10581061
}
10591062
else if constexpr (GL == geometry_library::cgal)
10601063
{
@@ -1072,6 +1075,11 @@ struct BufferLineStringOperator : public AbstrBufferOperator
10721075
auto offsetPolygons = CGAL::create_offset_polygons_2(bufferDistance, *straight_skeleton);
10731076
cgal_assign_shared_polygon_vector(resData[i], std::move(offsetPolygons));
10741077
}
1078+
1079+
// move to next geometry
1080+
if (++i == n)
1081+
return;
1082+
10751083
} while (e2IsVoid);
10761084
}
10771085
else if constexpr (GL == geometry_library::boost_polygon)

0 commit comments

Comments
 (0)