mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-05 15:40:37 +08: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
@ -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…
x
Reference in New Issue
Block a user