Fixed OSX and Linux build

This commit is contained in:
YuSanka 2019-05-31 15:36:38 +02:00
parent 5f4b7a5292
commit e09207e27e

View file

@ -2189,8 +2189,11 @@ void ObjectList::remove()
select_item(parent);
parent = wxDataViewItem(0);
}
else if (m_objects_model->GetChildren(parent, wxDataViewItemArray()) == 1)
parent = m_objects_model->GetTopParent(item);
else {
wxDataViewItemArray children;
if (m_objects_model->GetChildren(parent, children) == 1)
parent = m_objects_model->GetTopParent(item);
}
}
del_subobject_item(item);