mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
Fix: fix the crash issue when switch language under Debug mode
Change-Id: Ie6f978099c9b12f69d340ff39552eebafc10ba38
This commit is contained in:
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user