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
This commit is contained in:
parent
7d3e176a58
commit
cc92757cdc
2 changed files with 3 additions and 3 deletions
src/slic3r/GUI
|
@ -199,9 +199,9 @@ void change_opt_value(DynamicPrintConfig& config, const t_config_option_key& opt
|
||||||
break;
|
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()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -904,7 +904,7 @@ boost::any ConfigOptionsGroup::get_config_value(const DynamicPrintConfig& config
|
||||||
case coPoints:
|
case coPoints:
|
||||||
if (opt_key == "bed_shape")
|
if (opt_key == "bed_shape")
|
||||||
ret = config.option<ConfigOptionPoints>(opt_key)->values;
|
ret = config.option<ConfigOptionPoints>(opt_key)->values;
|
||||||
if (opt_key == "thumbnails")
|
else if (opt_key == "thumbnails")
|
||||||
ret = get_thumbnails_string(config.option<ConfigOptionPoints>(opt_key)->values);
|
ret = get_thumbnails_string(config.option<ConfigOptionPoints>(opt_key)->values);
|
||||||
else
|
else
|
||||||
ret = config.option<ConfigOptionPoints>(opt_key)->get_at(idx);
|
ret = config.option<ConfigOptionPoints>(opt_key)->get_at(idx);
|
||||||
|
|
Loading…
Reference in a new issue