Fixed a crash when preset with "modified"suffix is selected

This commit is contained in:
YuSanka 2020-10-02 09:02:16 +02:00
parent f1c24e6a8c
commit 3ec462e8f5

View File

@ -176,7 +176,8 @@ void Tab::create_preset_tab()
m_preset_bundle->physical_printers.unselect_printer(); m_preset_bundle->physical_printers.unselect_printer();
// select preset // select preset
select_preset(m_presets_choice->GetString(selection).ToUTF8().data()); std::string preset_name = m_presets_choice->GetString(selection).ToUTF8().data();
select_preset(Preset::remove_suffix_modified(preset_name));
} }
}); });