mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-15 01:22:07 +00:00
An attempt to fix #2997
More fixes might be needed on the other platforms
This commit is contained in:
@@ -131,7 +131,7 @@ ObjectList::ObjectList(wxWindow* parent) :
|
||||
{
|
||||
wxDataViewItemArray sels;
|
||||
GetSelections(sels);
|
||||
if (sels.front() == m_last_selected_item)
|
||||
if (! sels.empty() && sels.front() == m_last_selected_item)
|
||||
m_last_selected_item = sels.back();
|
||||
else
|
||||
m_last_selected_item = event.GetItem();
|
||||
|
||||
Reference in New Issue
Block a user