mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-03 08:35:12 +08:00
An attempt to fix #2997
More fixes might be needed on the other platforms
This commit is contained in:
parent
0abde9a2a8
commit
5ded376fe2
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user