diff --git a/src/Mod/PartDesign/Gui/Utils.cpp b/src/Mod/PartDesign/Gui/Utils.cpp index 16a1ac9813..e7e11f90c7 100644 --- a/src/Mod/PartDesign/Gui/Utils.cpp +++ b/src/Mod/PartDesign/Gui/Utils.cpp @@ -153,7 +153,8 @@ PartDesign::Body * makeBodyActive(App::DocumentObject *body, App::Document *doc, if(body) { auto _doc = parent?parent->getDocument():body->getDocument(); - _FCMD_DOC_CMD(Gui, _doc, "ActiveView.setActiveObject('" << PDBODYKEY + Gui::cmdGuiDocument(_doc, std::stringstream() + << "ActiveView.setActiveObject('" << PDBODYKEY << "'," << Gui::Command::getObjectCmd(parent?parent:body) << ",'" << sub << "')"); return Gui::Application::Instance->activeView()->