mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-26 04:12:07 +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) {
|
||||
m_plates.push_back(plate_node);
|
||||
is_added = true;
|
||||
}
|
||||
|
||||
wxDataViewItem plate_item(plate_node);
|
||||
if (refresh) {
|
||||
if (refresh && is_added) {
|
||||
ItemAdded(wxDataViewItem(nullptr), plate_item);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user