Fix #742
This commit is contained in:
parent
edb756c084
commit
f3f78ebc5a
1 changed files with 8 additions and 4 deletions
|
@ -405,12 +405,16 @@ void change_opt_value(DynamicPrintConfig& config, t_config_option_key opt_key, b
|
||||||
val = boost::any_cast<double>(value);
|
val = boost::any_cast<double>(value);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case coPercents:
|
case coPercents:{
|
||||||
case coFloats:{
|
ConfigOptionPercents* vec_new = new ConfigOptionPercents{ boost::any_cast<double>(value) };
|
||||||
double& val = config.opt_float(opt_key, 0);
|
config.option<ConfigOptionPercents>(opt_key)->set_at(vec_new, opt_index, opt_index);
|
||||||
val = boost::any_cast<double>(value);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case coFloats:{
|
||||||
|
ConfigOptionFloats* vec_new = new ConfigOptionFloats{ boost::any_cast<double>(value) };
|
||||||
|
config.option<ConfigOptionFloats>(opt_key)->set_at(vec_new, opt_index, opt_index);
|
||||||
|
break;
|
||||||
|
}
|
||||||
case coString:
|
case coString:
|
||||||
config.set_key_value(opt_key, new ConfigOptionString(boost::any_cast<std::string>(value)));
|
config.set_key_value(opt_key, new ConfigOptionString(boost::any_cast<std::string>(value)));
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue