diff --git a/src/Gui/CommandView.cpp b/src/Gui/CommandView.cpp index f4036485d4..a673d5a329 100644 --- a/src/Gui/CommandView.cpp +++ b/src/Gui/CommandView.cpp @@ -941,10 +941,10 @@ void StdCmdToggleSelectability::activated(int iMsg) if (pr && pr->isDerivedFrom(ViewProviderGeometryObject::getClassTypeId())){ if (static_cast(pr)->Selectable.getValue()) doCommand(Gui,"Gui.getDocument(\"%s\").getObject(\"%s\").Selectable=False" - , (*it)->getName(), (*ft)->getNameInDocument()); + , (*it)->getName(), ft->getNameInDocument()); else doCommand(Gui,"Gui.getDocument(\"%s\").getObject(\"%s\").Selectable=True" - , (*it)->getName(), (*ft)->getNameInDocument()); + , (*it)->getName(), ft->getNameInDocument()); } } }