mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-21 13:47:59 -06:00
Fixed a crash when 'Repair by Netfabb' was called with multiple object selection,
the bug was introduced with 1eebaa4
and possibly manifested in other scenarios as well.
This commit is contained in:
parent
cc480afe9b
commit
0efa0fc512
1 changed files with 3 additions and 0 deletions
|
@ -2561,6 +2561,9 @@ wxDataViewItem ObjectList::add_settings_item(wxDataViewItem parent_item, const D
|
||||||
|
|
||||||
void ObjectList::update_info_items(size_t obj_idx, wxDataViewItemArray* selections/* = nullptr*/, bool added_object/* = false*/)
|
void ObjectList::update_info_items(size_t obj_idx, wxDataViewItemArray* selections/* = nullptr*/, bool added_object/* = false*/)
|
||||||
{
|
{
|
||||||
|
if (obj_idx >= m_objects->size())
|
||||||
|
return;
|
||||||
|
|
||||||
const ModelObject* model_object = (*m_objects)[obj_idx];
|
const ModelObject* model_object = (*m_objects)[obj_idx];
|
||||||
wxDataViewItem item_obj = m_objects_model->GetItemById(obj_idx);
|
wxDataViewItem item_obj = m_objects_model->GetItemById(obj_idx);
|
||||||
assert(item_obj.IsOk());
|
assert(item_obj.IsOk());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue