FIX: fix crash bug when switching resolution
jira: none Change-Id: Ie1879a2a120502db2f2a9b3b8cac1f8a2b9737f9
This commit is contained in:
parent
3acfc87452
commit
28d0fc9bbe
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue