FIX:calibration&protection invalid tray
Change-Id: Ibfe9043773d7330f0375311086911c1d6a1d1f78
This commit is contained in:
parent
9d65199a2b
commit
c00719b837
|
@ -1023,8 +1023,10 @@ void AMSMaterialsSetting::on_select_filament(wxCommandEvent &evt)
|
|||
}
|
||||
else {
|
||||
Ams* selected_ams = this->obj->amsList[std::to_string(ams_id)];
|
||||
AmsTray selected_tray = *selected_ams->trayList[std::to_string(tray_id)];
|
||||
cali_select_idx = CalibUtils::get_selected_calib_idx(m_pa_profile_items, selected_tray.cali_idx);
|
||||
if(!selected_ams) return;
|
||||
AmsTray* selected_tray = selected_ams->trayList[std::to_string(tray_id)];
|
||||
if(!selected_tray) return;
|
||||
cali_select_idx = CalibUtils::get_selected_calib_idx(m_pa_profile_items, selected_tray->cali_idx);
|
||||
if (cali_select_idx >= 0) {
|
||||
m_comboBox_cali_result->SetSelection(cali_select_idx);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue