diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 43aceb1da..7628a2012 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -8518,10 +8518,13 @@ bool Plater::priv::check_ams_status_impl() } } - bool is_same_as_printer = preset_bundle->extruder_ams_counts[0][4] == main_4 + bool is_same_as_printer = false; + if (!preset_bundle->extruder_ams_counts.empty() && !preset_bundle->extruder_ams_counts.front().empty()) { + is_same_as_printer = preset_bundle->extruder_ams_counts[0][4] == main_4 && preset_bundle->extruder_ams_counts[0][1] == main_1 && preset_bundle->extruder_ams_counts[1][4] == deputy_4 && preset_bundle->extruder_ams_counts[1][1] == deputy_1; + } if (!is_same_as_printer) { struct SyncInfoDialog : MessageDialog diff --git a/src/slic3r/GUI/StatusPanel.cpp b/src/slic3r/GUI/StatusPanel.cpp index 32abc2937..f46f25efe 100644 --- a/src/slic3r/GUI/StatusPanel.cpp +++ b/src/slic3r/GUI/StatusPanel.cpp @@ -4803,7 +4803,7 @@ void StatusPanel::msw_rescale() m_bpButton_xy->Rescale(); auto size = TEMP_CTRL_MIN_SIZE_OF_SINGLE_NOZZLE; - if (obj->m_extder_data.total_extder_count >= 2) size = TEMP_CTRL_MIN_SIZE_OF_DOUBLE_NOZZLE; + if (obj && obj->m_extder_data.total_extder_count >= 2) size = TEMP_CTRL_MIN_SIZE_OF_DOUBLE_NOZZLE; m_tempCtrl_nozzle->SetMinSize(size); m_tempCtrl_nozzle->Rescale(); m_tempCtrl_nozzle_deputy->SetMinSize(size);