[Sketcher] Attempt to avoid double-trimming in some cases

Possibly fixes #19425 and/or #20081.
This commit is contained in:
Ajinkya Dahale
2025-03-13 03:42:47 +05:30
committed by Benjamin Nauck
parent fbac7d737b
commit b6a069dc63

View File

@@ -164,6 +164,11 @@ public:
return;
}
// FIXME: Attempt to avoid double trimming. This messes up the cursor.
// Possibly `mouseMove` gets triggered after first trim, but before preselection,
// resulting in another edge being deleted.
Gui::Selection().rmvPreselect();
const Part::Geometry* geo = sketchgui->getSketchObject()->getGeometry(GeoId);
if (geo->isDerivedFrom<Part::GeomTrimmedCurve>() || geo->is<Part::GeomCircle>()
|| geo->is<Part::GeomEllipse>() || geo->is<Part::GeomBSplineCurve>()) {