mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -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:
@@ -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);
|
val = gnc_numeric_convert(val, denom, GNC_HOW_RND_ROUND_HALF_UP);
|
||||||
value_is_decimal = gnc_numeric_to_decimal(&val, NULL);
|
value_is_decimal = gnc_numeric_to_decimal(&val, NULL);
|
||||||
}
|
}
|
||||||
/* Force at least auto_decimal_places zeros */
|
min_dp = info->min_decimal_places;
|
||||||
if (auto_decimal_enabled)
|
max_dp = info->max_decimal_places;
|
||||||
{
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Don to limit the number of decimal places _UNLESS_ force_fit is
|
/* Don to limit the number of decimal places _UNLESS_ force_fit is
|
||||||
* true. */
|
* true. */
|
||||||
if (!info->force_fit)
|
if (!info->force_fit)
|
||||||
|
|||||||
Reference in New Issue
Block a user