mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 18:27:58 -06:00
Display accurate precision for percent config values (#3466)
Percent config values are managed as float types, but decimal precision is not displayed in the GUI. This change uses the `double_to_string()` converstion rather than casting to an int when retrieving the config option value.
This commit is contained in:
parent
0bf78f8e9e
commit
b4925363d6
1 changed files with 1 additions and 2 deletions
|
@ -981,8 +981,7 @@ boost::any ConfigOptionsGroup::get_config_value(const DynamicPrintConfig& config
|
||||||
}
|
}
|
||||||
case coPercent:{
|
case coPercent:{
|
||||||
double val = config.option<ConfigOptionPercent>(opt_key)->value;
|
double val = config.option<ConfigOptionPercent>(opt_key)->value;
|
||||||
text_value = wxString::Format(_T("%i"), int(val));
|
ret = double_to_string(val);// += "%";
|
||||||
ret = text_value;// += "%";
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case coPercents:
|
case coPercents:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue