mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-03 00:02:14 +00:00
fix ubuntu seg fault
This commit is contained in:
@@ -482,10 +482,11 @@ wxDataViewItem ObjectDataViewModel::AddPlate(PartPlate* part_plate, wxString nam
|
|||||||
|
|
||||||
if (!is_added && plate_idx != -1) {
|
if (!is_added && plate_idx != -1) {
|
||||||
m_plates.push_back(plate_node);
|
m_plates.push_back(plate_node);
|
||||||
|
is_added = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxDataViewItem plate_item(plate_node);
|
wxDataViewItem plate_item(plate_node);
|
||||||
if (refresh) {
|
if (refresh && is_added) {
|
||||||
ItemAdded(wxDataViewItem(nullptr), plate_item);
|
ItemAdded(wxDataViewItem(nullptr), plate_item);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user