mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 23:17:35 -06:00
Fix: fix the crash issue when switch language under Debug mode
Change-Id: Ie6f978099c9b12f69d340ff39552eebafc10ba38
This commit is contained in:
parent
4e4472c5b6
commit
dc9ff8b826
2 changed files with 5 additions and 2 deletions
|
@ -1343,6 +1343,9 @@ void MenuFactory::append_menu_item_change_filament(wxMenu* menu)
|
|||
return;
|
||||
|
||||
std::vector<wxBitmap*> icons = get_extruder_color_icons(true);
|
||||
if (icons.size() < filaments_cnt) {
|
||||
BOOST_LOG_TRIVIAL(warning) << boost::format("Warning: icons size %1%, filaments_cnt=%2%")%icons.size()%filaments_cnt;
|
||||
}
|
||||
wxMenu* extruder_selection_menu = new wxMenu();
|
||||
const wxString& name = sels.Count() == 1 ? names[0] : names[1];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue