diff --git a/src/Mod/PartDesign/Gui/Utils.cpp b/src/Mod/PartDesign/Gui/Utils.cpp index 0337b048f4..2e1db4dd01 100644 --- a/src/Mod/PartDesign/Gui/Utils.cpp +++ b/src/Mod/PartDesign/Gui/Utils.cpp @@ -89,10 +89,9 @@ bool setEdit(App::DocumentObject *obj, PartDesign::Body *body) { return false; App::DocumentObject *parent = nullptr; std::string subname; - auto activeBody = activeView->getActiveObject(PDBODYKEY,&parent,&subname); + auto activeBody = activeView->getActiveObject(PDBODYKEY); if (activeBody != body) { parent = obj; - subname.clear(); } else { parent = getParent(obj, subname);