Gui: fix selection of nested object in App::Part

This commit is contained in:
Zheng, Lei
2023-09-26 13:13:27 +08:00
committed by wwmayer
parent eb73a9bce0
commit 28bcc3d097

View File

@@ -4184,11 +4184,6 @@ void DocumentItem::updateItemSelection(DocumentObjectItem* item) {
App::DocumentObject* topParent = nullptr;
item->getSubName(str, topParent);
if (topParent) {
if (topParent->hasExtension(App::GeoFeatureGroupExtension::getExtensionClassTypeId())) {
// remove legacy selection, i.e. those without subname
Gui::Selection().rmvSelection(obj->getDocument()->getName(),
obj->getNameInDocument(), nullptr);
}
if (!obj->redirectSubName(str, topParent, nullptr))
str << obj->getNameInDocument() << '.';
obj = topParent;