Skip to content

Commit

Permalink
Fixed crash
Browse files Browse the repository at this point in the history
  • Loading branch information
wawanbreton committed Apr 12, 2024
1 parent cccbfe3 commit 38965fd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/LayerPlan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1422,6 +1422,10 @@ void LayerPlan::addLinesInGivenOrder(
{
const PathOrdering<const Polyline*>& path = lines[order_idx];
const Polyline& polyline = *path.vertices_;
if (polyline.segmentsCount() == 0)
{
continue;
}
const size_t start_idx = path.start_vertex_;
assert(start_idx == 0 || start_idx == polyline.size() - 1 || path.is_closed_);
const Point2LL start = polyline[start_idx];
Expand Down

0 comments on commit 38965fd

Please sign in to comment.