From 3da4b59b3710fc64f5b1ef0a67d47ce1bd50821b Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Sun, 15 Sep 2024 19:26:48 +0200 Subject: [PATCH] Sketcher/Toponaming: call SketchObject::convertSubName() in ViewProviderSketch::addSelection2() --- src/Mod/Sketcher/Gui/ViewProviderSketch.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp index e3dc0c6994..abed2b5f52 100644 --- a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp +++ b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp @@ -3875,7 +3875,12 @@ bool ViewProviderSketch::addSelection(const std::string& subNameSuffix, float x, bool ViewProviderSketch::addSelection2(const std::string& subNameSuffix, float x, float y, float z) { return Gui::Selection().addSelection2( - 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::setPreselect(const std::string& subNameSuffix, float x, float y, float z)