Fix of Crash on Export config Bundle (Win64) (#2307)

Export of the names of the SLA profiles was performed into the config bundle
for SLA profiles, which were nop set. A safe method is now used,
which stores an empty string in such a case.
This commit is contained in:
bubnikv 2019-05-22 11:31:36 +02:00
parent 37984ece16
commit f5ef537640
3 changed files with 16 additions and 16 deletions

View file

@ -832,7 +832,7 @@ void Sidebar::update_presets(Preset::Type preset_type)
if (filament_cnt == 1) {
// Single filament printer, synchronize the filament presets.
const std::string &name = preset_bundle.filaments.get_selected_preset().name;
const std::string &name = preset_bundle.filaments.get_selected_preset_name();
preset_bundle.set_filament_preset(0, name);
}