mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 10:32:20 +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;
|
wxDataViewItemArray sels;
|
||||||
GetSelections(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();
|
m_last_selected_item = sels.back();
|
||||||
else
|
else
|
||||||
m_last_selected_item = event.GetItem();
|
m_last_selected_item = event.GetItem();
|
||||||
|
|||||||
Reference in New Issue
Block a user