From 8c43b049705b98248a0becc7ecef5676345c54f3 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Wed, 4 Sep 2019 14:37:09 +0200 Subject: [PATCH] Fixed debug crash in update_changed_tree_ui Reproduce: For MK2.5S printer preset set flag "Support stealth mode" --- src/slic3r/GUI/Tab.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/slic3r/GUI/Tab.cpp b/src/slic3r/GUI/Tab.cpp index 6e6fcf50c..d9cf56f03 100644 --- a/src/slic3r/GUI/Tab.cpp +++ b/src/slic3r/GUI/Tab.cpp @@ -545,6 +545,9 @@ void TabSLAMaterial::init_options_list() void Tab::get_sys_and_mod_flags(const std::string& opt_key, bool& sys_page, bool& modified_page) { auto opt = m_options_list.find(opt_key); + if (opt == m_options_list.end()) + return; + if (sys_page) sys_page = (opt->second & osSystemValue) != 0; modified_page |= (opt->second & osInitValue) == 0; }