mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-16 19:16:18 +08: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
@ -981,8 +981,7 @@ boost::any ConfigOptionsGroup::get_config_value(const DynamicPrintConfig& config
|
||||
}
|
||||
case coPercent:{
|
||||
double val = config.option<ConfigOptionPercent>(opt_key)->value;
|
||||
text_value = wxString::Format(_T("%i"), int(val));
|
||||
ret = text_value;// += "%";
|
||||
ret = double_to_string(val);// += "%";
|
||||
}
|
||||
break;
|
||||
case coPercents:
|
||||
|
Loading…
x
Reference in New Issue
Block a user