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 2a90f8c5f4
commit 265b556507

View File

@@ -176,7 +176,8 @@ void Tab::create_preset_tab()
m_preset_bundle->physical_printers.unselect_printer();
// 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));
}
});