improve whitespaces
This commit is contained in:
@@ -1164,7 +1164,7 @@ void DocumentItem::populateItem(DocumentObjectItem *item, bool refresh) {
|
||||
// other parents not expanded yet. We don't want to traverse the
|
||||
// whole tree to confirm that. Just let it be. If the other
|
||||
// parent(s) later expanded, this child item will be moved from
|
||||
// root to its parent.
|
||||
// root to its parent.
|
||||
if(obj->myselves->size()==1) {
|
||||
// We only make a difference for geofeaturegroups,
|
||||
// as otherwise it comes to confusing behavior to the user when things
|
||||
@@ -1181,17 +1181,17 @@ void DocumentItem::populateItem(DocumentObjectItem *item, bool refresh) {
|
||||
}
|
||||
|
||||
void DocumentItem::slotChangeObject(const Gui::ViewProviderDocumentObject& view)
|
||||
{
|
||||
{
|
||||
QString displayName = QString::fromUtf8(view.getObject()->Label.getValue());
|
||||
FOREACH_ITEM(item,view)
|
||||
item->setText(0, displayName);
|
||||
populateItem(item, true);
|
||||
END_FOREACH_ITEM
|
||||
|
||||
|
||||
//if the item is in a GeoFeatureGroup we may need to update that too, as the claim children
|
||||
//of the geofeaturegroup depends on what the childs claim
|
||||
auto grp = App::GeoFeatureGroupExtension::getGroupOfObject(view.getObject());
|
||||
if(grp) {
|
||||
if (grp) {
|
||||
FOREACH_ITEM_NAME(item, grp->getNameInDocument())
|
||||
populateItem(item, true);
|
||||
END_FOREACH_ITEM
|
||||
|
||||
Reference in New Issue
Block a user