Commit b63be284 authored by Don Gagne's avatar Don Gagne

Fix logic to handle decimal places not specified in meta data

parent b8d25964
......@@ -614,8 +614,8 @@ int FactMetaData::decimalPlaces(void) const
if (incrementDecimalPlaces != unknownDecimalPlaces && _decimalPlaces == unknownDecimalPlaces) {
actualDecimalPlaces = incrementDecimalPlaces;
} else {
int settingsDecimalPlaces = _decimalPlaces;
// Adjust decimal places for cooked translation
int settingsDecimalPlaces = _decimalPlaces == unknownDecimalPlaces ? defaultDecimalPlaces : _decimalPlaces;
double ctest = _rawTranslator(1.0).toDouble();
settingsDecimalPlaces += -log10(ctest);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment