From 32cf5fa61a8ede905dded37433074656fa5d2219 Mon Sep 17 00:00:00 2001 From: Ajinkya Dahale Date: Fri, 14 Mar 2025 02:17:02 +0530 Subject: [PATCH] [Sketcher] Add missing check when transforming constraints for trim Fixes https://github.com/AstoCAD/FreeCAD/issues/24. --- src/Mod/Sketcher/App/SketchObject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Sketcher/App/SketchObject.cpp b/src/Mod/Sketcher/App/SketchObject.cpp index a39ce9c6e4..6235f0a5cf 100644 --- a/src/Mod/Sketcher/App/SketchObject.cpp +++ b/src/Mod/Sketcher/App/SketchObject.cpp @@ -3628,7 +3628,7 @@ std::unique_ptr transformPreexistingConstraintForTrim(const SketchOb */ // TODO: Symmetric and distance constraints (sometimes together) can be changed to something std::unique_ptr newConstr; - if (!constr->involvesGeoId(cuttingGeoId) + if (cuttingGeoId == GeoEnum::GeoUndef || !constr->involvesGeoId(cuttingGeoId) || !constr->involvesGeoIdAndPosId(GeoId, PointPos::none)) { return newConstr; }