Skip to content

Commit

Permalink
Restore line emptyness check when symplifying
Browse files Browse the repository at this point in the history
This was a regression of the behavior compared to before the geometry
classes refactoring. Just restoring this behavior.

CURA-9830
  • Loading branch information
wawanbreton committed May 8, 2024
1 parent 7d0b21e commit 42ad756
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/Simplify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ LinesSet<LineType> Simplify::polyline(const LinesSet<LineType>& polylines) const
LinesSet<LineType> result;
for (size_t i = 0; i < polylines.size(); ++i)
{
result.push_back(polyline(polylines[i]));
result.push_back(polyline(polylines[i]), CheckNonEmptyParam::OnlyIfNotEmpty);
}
return result;
}
Expand Down

0 comments on commit 42ad756

Please sign in to comment.