Fix extruder name >2 extruder printers (#12190)

Fix for memory access violation when using printers other than bbl printers with >2 extruders.

JIRA-24
This commit is contained in:
Derrick
2026-02-06 16:55:35 +08:00
committed by GitHub
parent 9e2cf00f0c
commit e6e6210120

View File

@@ -9523,7 +9523,14 @@ void GLCanvas3D::_set_warning_notification(EWarning warning, bool state)
}
}
}
std::string extruder_name = extruder_name_list[extruder_id-1];
std::string extruder_name;
if(wxGetApp().preset_bundle->is_bbl_vendor()){
extruder_name = extruder_name_list[extruder_id-1];
}
else{
extruder_name += (boost::format(_u8L("Tool %d"))%extruder_id).str();
}
if (error_iter->second.size() == 1) {
text += (boost::format(_u8L("Filament %s is placed in the %s, but the generated G-code path exceeds the printable range of the %s.")) %filaments %extruder_name %extruder_name).str();
}