From 42ad7560af678c890d65d0b24d6ca33b2de2fe30 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Wed, 8 May 2024 12:42:58 +0200 Subject: [PATCH] Restore line emptyness check when symplifying This was a regression of the behavior compared to before the geometry classes refactoring. Just restoring this behavior. CURA-9830 --- src/utils/Simplify.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/Simplify.cpp b/src/utils/Simplify.cpp index e1802165ba..a7c38d496c 100644 --- a/src/utils/Simplify.cpp +++ b/src/utils/Simplify.cpp @@ -58,7 +58,7 @@ LinesSet Simplify::polyline(const LinesSet& polylines) const LinesSet 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; }