Fixed OSX and Linux build
This commit is contained in:
parent
5f4b7a5292
commit
e09207e27e
1 changed files with 5 additions and 2 deletions
|
@ -2189,8 +2189,11 @@ void ObjectList::remove()
|
||||||
select_item(parent);
|
select_item(parent);
|
||||||
parent = wxDataViewItem(0);
|
parent = wxDataViewItem(0);
|
||||||
}
|
}
|
||||||
else if (m_objects_model->GetChildren(parent, wxDataViewItemArray()) == 1)
|
else {
|
||||||
parent = m_objects_model->GetTopParent(item);
|
wxDataViewItemArray children;
|
||||||
|
if (m_objects_model->GetChildren(parent, children) == 1)
|
||||||
|
parent = m_objects_model->GetTopParent(item);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
del_subobject_item(item);
|
del_subobject_item(item);
|
||||||
|
|
Loading…
Add table
Reference in a new issue