mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Fix out of bounds selection in ObjectList, fix #1890
This commit is contained in:
parent
58c136a9a3
commit
456d09be76
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue