Fixed OSX compilation bug

Changed info_box (more place to the manifold information)
This commit is contained in:
YuSanka 2018-06-07 11:54:42 +02:00
parent b31e696edc
commit 49f0a1a824
2 changed files with 13 additions and 7 deletions

View file

@ -907,8 +907,10 @@ wxBoxSizer* content_objects_list(wxWindow *win)
{
if (m_objects_model->GetParent(item) == wxDataViewItem(0))
obj_idx = m_objects_model->GetIdByItem(item);
else
obj_idx = m_objects_model->GetIdByItem(m_objects_model->GetParent(item)); // TODO Temporary decision for sub-objects selection
else {
auto parent = m_objects_model->GetParent(item);
obj_idx = m_objects_model->GetIdByItem(parent); // TODO Temporary decision for sub-objects selection
}
}
if (m_event_object_selection_changed > 0) {