From abc971254dfd8a87300a16f8ff31a4dd14d5bd2c Mon Sep 17 00:00:00 2001 From: PaddleStroke Date: Tue, 8 Oct 2024 16:35:14 +0200 Subject: [PATCH] Sketcher: Fix double click of wire and remove selection that was not working --- src/Mod/Sketcher/Gui/ViewProviderSketch.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp index b075bc7482..f2cab84915 100644 --- a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp +++ b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp @@ -3862,19 +3862,19 @@ void ViewProviderSketch::clearSelectPoints() bool ViewProviderSketch::isSelected(const std::string& subNameSuffix) const { return Gui::Selection().isSelected( - editDocName.c_str(), editObjName.c_str(), (editSubName + subNameSuffix).c_str()); + editDocName.c_str(), editObjName.c_str(), (editSubName + getSketchObject()->convertSubName(subNameSuffix)).c_str()); } void ViewProviderSketch::rmvSelection(const std::string& subNameSuffix) { Gui::Selection().rmvSelection( - editDocName.c_str(), editObjName.c_str(), (editSubName + subNameSuffix).c_str()); + editDocName.c_str(), editObjName.c_str(), (editSubName + getSketchObject()->convertSubName(subNameSuffix)).c_str()); } bool ViewProviderSketch::addSelection(const std::string& subNameSuffix, float x, float y, float z) { return Gui::Selection().addSelection( - editDocName.c_str(), editObjName.c_str(), (editSubName + subNameSuffix).c_str(), x, y, z); + editDocName.c_str(), editObjName.c_str(), (editSubName + getSketchObject()->convertSubName(subNameSuffix)).c_str(), x, y, z); } bool ViewProviderSketch::addSelection2(const std::string& subNameSuffix, float x, float y, float z)