Fix out of bounds selection in ObjectList, fix #1890

This commit is contained in:
Vojtech Kral 2019-03-18 16:18:28 +01:00
parent 58c136a9a3
commit 456d09be76

View File

@ -2022,6 +2022,8 @@ void ObjectList::update_selections_on_canvas()
void ObjectList::select_item(const wxDataViewItem& item) void ObjectList::select_item(const wxDataViewItem& item)
{ {
if (! item.IsOk()) { return; }
m_prevent_list_events = true; m_prevent_list_events = true;
UnselectAll(); UnselectAll();