mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-05 22:37:41 -07:00
FIX:fix crash for no valid filaments
jira: none Change-Id: I9433da99d2ad355f088917e88350c5fd36bd1aea (cherry picked from commit 52442fa6d58d4d9204c386ec1a2ccfedf7115151)
This commit is contained in:
parent
552c674483
commit
7d3acd75ae
7 changed files with 37 additions and 5 deletions
|
|
@ -405,8 +405,10 @@ void SyncAmsInfoDialog::update_map_when_change_map_mode()
|
|||
m_cur_colors_in_thumbnail[i] = result;
|
||||
}
|
||||
else {
|
||||
//todo:give warning
|
||||
m_cur_colors_in_thumbnail[i] = m_cur_colors_in_thumbnail[0];
|
||||
if (!m_cur_colors_in_thumbnail.empty()) {
|
||||
// todo:give warning
|
||||
m_cur_colors_in_thumbnail[i] = m_cur_colors_in_thumbnail[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -4293,6 +4295,9 @@ void SyncAmsInfoDialog::unify_deal_thumbnail_data(ThumbnailData &input_data, Thu
|
|||
final_deal_edge_pixels_data(m_preview_thumbnail_data);
|
||||
set_default_normal(m_preview_thumbnail_data);
|
||||
}
|
||||
else {
|
||||
set_default_normal(input_data);
|
||||
}
|
||||
}
|
||||
|
||||
void SyncAmsInfoDialog::change_default_normal(int old_filament_id, wxColour temp_ams_color)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue