An attempt to fix #2997
More fixes might be needed on the other platforms
This commit is contained in:
parent
0abde9a2a8
commit
5ded376fe2
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue