From ddfea2c9e5181767c2c3d0c184f1db080683aaaa Mon Sep 17 00:00:00 2001 From: PaddleStroke Date: Wed, 3 Dec 2025 15:30:44 +0100 Subject: [PATCH] Sketcher: dimension tool, use VPSketch version of addSelection --- src/Mod/Sketcher/Gui/CommandConstraints.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Mod/Sketcher/Gui/CommandConstraints.cpp b/src/Mod/Sketcher/Gui/CommandConstraints.cpp index cc3914edac..c5bc4a4c4b 100644 --- a/src/Mod/Sketcher/Gui/CommandConstraints.cpp +++ b/src/Mod/Sketcher/Gui/CommandConstraints.cpp @@ -1948,9 +1948,7 @@ public: if (selAllowed) { // If mouse is released on something allowed, select it - Gui::Selection().addSelection(Obj->getDocument()->getName(), - Obj->getNameInDocument(), - ss.str().c_str(), onSketchPos.x, onSketchPos.y, 0.f); + sketchgui->addSelection2(ss.str().c_str(), onSketchPos.x, onSketchPos.y, 0.f); sketchgui->draw(false, false); // Redraw } else { @@ -1967,9 +1965,7 @@ public: restartCommand(QT_TRANSLATE_NOOP("Command", "Dimension")); } - Gui::Selection().rmvSelection(Obj->getDocument()->getName(), - Obj->getNameInDocument(), - ss.str().c_str()); + sketchgui->rmvSelection(ss.str().c_str()); sketchgui->draw(false, false); // Redraw }