From 918d0e9656929285acc7b0d21b8571e0dc260e8f Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Date: Sat, 23 Mar 2024 12:38:11 +0100 Subject: [PATCH] [Corners LPE 1] Ignore segment of 2 --- src/live_effects/lpe-fillet-chamfer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/live_effects/lpe-fillet-chamfer.cpp b/src/live_effects/lpe-fillet-chamfer.cpp index 2d1e0d0a04..3d1fa50ab8 100644 --- a/src/live_effects/lpe-fillet-chamfer.cpp +++ b/src/live_effects/lpe-fillet-chamfer.cpp @@ -430,6 +430,10 @@ LPEFilletChamfer::doEffect_path(Geom::PathVector const &path_in) } } size_t tcurves = count_path_curves(pathv[path]); + if (tcurves < 2) { + path_out.push_back(pathv[path]); + continue; + } while (curve_it1 != curve_endit) { ++curve; size_t next_index = curve + 1; -- GitLab