Sketcher/Toponaming: call SketchObject::convertSubName() in ViewProviderSketch::addSelection2()

This commit is contained in:
Zheng, Lei
2024-09-15 19:26:48 +02:00
committed by CalligaroV
parent b4923d1c58
commit 3da4b59b37

View File

@@ -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)