Fix: fix the crash issue when switch language under Debug mode

Change-Id: Ie6f978099c9b12f69d340ff39552eebafc10ba38
This commit is contained in:
lane.wei 2022-09-28 09:35:43 +08:00 committed by Lane.Wei
parent 4e4472c5b6
commit dc9ff8b826
2 changed files with 5 additions and 2 deletions

View file

@ -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];