mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Formatting.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15877 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
92f3dc0bad
commit
b1f84468ce
@ -1364,13 +1364,15 @@ PrintAmountInternal(char *buf, gnc_numeric val, const GNCPrintAmountInfo *info)
|
||||
guint8 num_decimal_places = 0;
|
||||
char *temp_ptr = temp_buf;
|
||||
|
||||
decimal_point = info->monetary ?
|
||||
lc->mon_decimal_point : lc->decimal_point;
|
||||
decimal_point = info->monetary
|
||||
? lc->mon_decimal_point
|
||||
: lc->decimal_point;
|
||||
g_utf8_strncpy(temp_ptr, decimal_point, 1);
|
||||
temp_ptr = g_utf8_find_next_char(temp_ptr, NULL);
|
||||
|
||||
while (!gnc_numeric_zero_p (val) && (val.denom != 1) &&
|
||||
(num_decimal_places < max_dp))
|
||||
while (!gnc_numeric_zero_p (val)
|
||||
&& (val.denom != 1)
|
||||
&& (num_decimal_places < max_dp))
|
||||
{
|
||||
gint64 digit;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user