mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-16 18:25:11 -06:00
Bug 797078 - "Automatic decimal point" Should Not Cause 2 Different Behaviors
It's documented only for automatically inserting the decimal point so remove the code that affects number display.
This commit is contained in:
parent
a482c25072
commit
9189bcbe41
@ -1553,18 +1553,9 @@ PrintAmountInternal(char *buf, gnc_numeric val, const GNCPrintAmountInfo *info)
|
||||
val = gnc_numeric_convert(val, denom, GNC_HOW_RND_ROUND_HALF_UP);
|
||||
value_is_decimal = gnc_numeric_to_decimal(&val, NULL);
|
||||
}
|
||||
/* Force at least auto_decimal_places zeros */
|
||||
if (auto_decimal_enabled)
|
||||
{
|
||||
min_dp = MAX(auto_decimal_places, info->min_decimal_places);
|
||||
max_dp = MAX(auto_decimal_places, info->max_decimal_places);
|
||||
}
|
||||
else
|
||||
{
|
||||
min_dp = info->min_decimal_places;
|
||||
max_dp = info->max_decimal_places;
|
||||
}
|
||||
|
||||
min_dp = info->min_decimal_places;
|
||||
max_dp = info->max_decimal_places;
|
||||
|
||||
/* Don to limit the number of decimal places _UNLESS_ force_fit is
|
||||
* true. */
|
||||
if (!info->force_fit)
|
||||
|
Loading…
Reference in New Issue
Block a user