diff --git a/src/slic3r/GUI/CalibrationWizardPresetPage.cpp b/src/slic3r/GUI/CalibrationWizardPresetPage.cpp index eac53d08e..a760f6b25 100644 --- a/src/slic3r/GUI/CalibrationWizardPresetPage.cpp +++ b/src/slic3r/GUI/CalibrationWizardPresetPage.cpp @@ -1527,8 +1527,11 @@ void CalibrationPresetPage::set_cali_method(CalibrationMethod method) m_custom_range_panel->set_titles(titles); wxArrayString values; + ExtruderType extruder_type = ExtruderType::etDirectDrive; Preset* printer_preset = get_printer_preset(curr_obj, get_nozzle_value()); - int extruder_type = printer_preset->config.opt_enum("extruder_type", 0); + if (printer_preset) { + extruder_type = ExtruderType(printer_preset->config.opt_enum("extruder_type", 0)); + } if (extruder_type == ExtruderType::etBowden) { values.push_back(_L("0")); values.push_back(_L("0.5"));