Fixed debug crash in update_changed_tree_ui

Reproduce: For MK2.5S printer preset set flag "Support stealth mode"
This commit is contained in:
YuSanka 2019-09-04 14:37:09 +02:00
parent 229eff72d6
commit 8c43b04970

View file

@ -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;
}