Fixed bug with update (part of #1801)

This commit is contained in:
YuSanka 2019-02-22 09:38:56 +01:00
parent 73daf085e6
commit 26833ee641
6 changed files with 92 additions and 28 deletions

View file

@ -1435,7 +1435,8 @@ bool PresetBundle::parse_color(const std::string &scolor, unsigned char *rgb_out
void PresetBundle::update_platter_filament_ui(unsigned int idx_extruder, GUI::PresetComboBox *ui)
{
if (ui == nullptr || this->printers.get_edited_preset().printer_technology() == ptSLA)
if (ui == nullptr || this->printers.get_edited_preset().printer_technology() == ptSLA ||
this->filament_presets.size() <= idx_extruder )
return;
unsigned char rgb[3];