mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-07-03 17:05:43 +02:00
Fix out of bounds selection in ObjectList, fix #1890
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user