Skip to content

Commit a9bff78

Browse files
PaddleStrokechennes
authored andcommitted
Sketcher: Fix double click of wire and remove selection that was not working
1 parent 12c6fc2 commit a9bff78

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Mod/Sketcher/Gui/ViewProviderSketch.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -3862,19 +3862,19 @@ void ViewProviderSketch::clearSelectPoints()
38623862
bool ViewProviderSketch::isSelected(const std::string& subNameSuffix) const
38633863
{
38643864
return Gui::Selection().isSelected(
3865-
editDocName.c_str(), editObjName.c_str(), (editSubName + subNameSuffix).c_str());
3865+
editDocName.c_str(), editObjName.c_str(), (editSubName + getSketchObject()->convertSubName(subNameSuffix)).c_str());
38663866
}
38673867

38683868
void ViewProviderSketch::rmvSelection(const std::string& subNameSuffix)
38693869
{
38703870
Gui::Selection().rmvSelection(
3871-
editDocName.c_str(), editObjName.c_str(), (editSubName + subNameSuffix).c_str());
3871+
editDocName.c_str(), editObjName.c_str(), (editSubName + getSketchObject()->convertSubName(subNameSuffix)).c_str());
38723872
}
38733873

38743874
bool ViewProviderSketch::addSelection(const std::string& subNameSuffix, float x, float y, float z)
38753875
{
38763876
return Gui::Selection().addSelection(
3877-
editDocName.c_str(), editObjName.c_str(), (editSubName + subNameSuffix).c_str(), x, y, z);
3877+
editDocName.c_str(), editObjName.c_str(), (editSubName + getSketchObject()->convertSubName(subNameSuffix)).c_str(), x, y, z);
38783878
}
38793879

38803880
bool ViewProviderSketch::addSelection2(const std::string& subNameSuffix, float x, float y, float z)

0 commit comments

Comments
 (0)