mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-05 06:17:45 -07:00
Fix crash when switching profiles
This commit is contained in:
parent
a932821168
commit
addc718acf
1 changed files with 2 additions and 2 deletions
|
|
@ -792,7 +792,7 @@ struct DynamicFilamentList : DynamicList
|
|||
std::string type;
|
||||
wxGetApp().preset_bundle->filaments.find_preset(presets[i])->get_filament_type(type);
|
||||
str << type;
|
||||
items.push_back({str, icons[i]});
|
||||
items.push_back({str, i < icons.size() ? icons[i] : nullptr});
|
||||
}
|
||||
DynamicList::update();
|
||||
}
|
||||
|
|
@ -839,7 +839,7 @@ struct DynamicFilamentList1Based : DynamicFilamentList
|
|||
std::string type;
|
||||
wxGetApp().preset_bundle->filaments.find_preset(presets[i])->get_filament_type(type);
|
||||
str << type;
|
||||
items.push_back({str, icons[i]});
|
||||
items.push_back({str, i < icons.size() ? icons[i] : nullptr});
|
||||
}
|
||||
DynamicList::update();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue