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; }