From fb2448fbe399b0a4f7e63a21496d39f5dc438221 Mon Sep 17 00:00:00 2001 From: David Kocik Date: Wed, 19 Apr 2023 13:10:39 +0200 Subject: [PATCH] Fix of missing AppConfig::has_section before get_section in ConfigWizard. --- src/slic3r/GUI/ConfigWizard.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/slic3r/GUI/ConfigWizard.cpp b/src/slic3r/GUI/ConfigWizard.cpp index e38b3f194..11b116a05 100644 --- a/src/slic3r/GUI/ConfigWizard.cpp +++ b/src/slic3r/GUI/ConfigWizard.cpp @@ -3171,6 +3171,8 @@ bool ConfigWizard::priv::apply_config(AppConfig *app_config, PresetBundle *prese } else { auto changed = [app_config, &appconfig_new = std::as_const(this->appconfig_new)](const std::string& section_name) { + if (!appconfig_new.has_section(section_name)) + return false; return (app_config->has_section(section_name) ? app_config->get_section(section_name) : std::map()) != appconfig_new.get_section(section_name); }; bool is_filaments_changed = changed(AppConfig::SECTION_FILAMENTS);