File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments