mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Fixed ObjectList::last_volume_is_deleted() to avoid clearing volume[0].config after undo/redo
This commit is contained in:
parent
a121253520
commit
804e1b1939
2 changed files with 3 additions and 3 deletions
|
@ -1508,7 +1508,7 @@ ItemType ObjectDataViewModel::GetItemType(const wxDataViewItem &item) const
|
|||
if (!item.IsOk())
|
||||
return itUndef;
|
||||
ObjectDataViewModelNode *node = (ObjectDataViewModelNode*)item.GetID();
|
||||
return node->m_type;
|
||||
return node->m_type < 0 ? itUndef : node->m_type;
|
||||
}
|
||||
|
||||
wxDataViewItem ObjectDataViewModel::GetItemByType(const wxDataViewItem &parent_item, ItemType type) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue