From cc92757cdcc1d683f6b59e1eab6c28e34dbc4092 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Tue, 20 Jul 2021 09:40:56 +0200 Subject: [PATCH] Follow up 569200eb - fixed a typo witch was caused a bug "Impossible to revert the bed shape" + Added error message for exception when changing the config value --- src/slic3r/GUI/GUI.cpp | 4 ++-- src/slic3r/GUI/OptionsGroup.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/slic3r/GUI/GUI.cpp b/src/slic3r/GUI/GUI.cpp index 2831092da..50b28d85b 100644 --- a/src/slic3r/GUI/GUI.cpp +++ b/src/slic3r/GUI/GUI.cpp @@ -199,9 +199,9 @@ void change_opt_value(DynamicPrintConfig& config, const t_config_option_key& opt break; } } - catch (const std::exception & /* e */) + catch (const std::exception &e) { - // int i = 0;//no reason, just experiment + wxLogError(format_wxstr(_L("Internal error when changing value for %1%: %2%"), opt_key, e.what())); } } diff --git a/src/slic3r/GUI/OptionsGroup.cpp b/src/slic3r/GUI/OptionsGroup.cpp index 6624982dd..728981f0a 100644 --- a/src/slic3r/GUI/OptionsGroup.cpp +++ b/src/slic3r/GUI/OptionsGroup.cpp @@ -904,7 +904,7 @@ boost::any ConfigOptionsGroup::get_config_value(const DynamicPrintConfig& config case coPoints: if (opt_key == "bed_shape") ret = config.option(opt_key)->values; - if (opt_key == "thumbnails") + else if (opt_key == "thumbnails") ret = get_thumbnails_string(config.option(opt_key)->values); else ret = config.option(opt_key)->get_at(idx);