From 2aa8f133f3eb3f03fefc360bf2ee26a3772a7cfb Mon Sep 17 00:00:00 2001 From: PaddleStroke Date: Wed, 24 Sep 2025 11:41:46 +0200 Subject: [PATCH] Sketcher: Fix crash on constraint selection --- src/Mod/Sketcher/Gui/CommandSketcherBSpline.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Mod/Sketcher/Gui/CommandSketcherBSpline.cpp b/src/Mod/Sketcher/Gui/CommandSketcherBSpline.cpp index b99c192650..a5a135fee7 100644 --- a/src/Mod/Sketcher/Gui/CommandSketcherBSpline.cpp +++ b/src/Mod/Sketcher/Gui/CommandSketcherBSpline.cpp @@ -353,6 +353,10 @@ bool isCommandNeedingBSplineKnotActive(Gui::Document* doc) PointPos posId {PointPos::none}; getIdsFromName(name, Obj, geoId, posId); + if (geoId == GeoEnum::GeoUndef) { + return false; + } + int splineGeoId {GeoEnum::GeoUndef}; int knotIndexOCC {-1};