diff options
Diffstat (limited to 'finance/gnucash-current/patches/patch-ab')
-rw-r--r-- | finance/gnucash-current/patches/patch-ab | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/finance/gnucash-current/patches/patch-ab b/finance/gnucash-current/patches/patch-ab index 7d19e05e744..15ba2b13c1e 100644 --- a/finance/gnucash-current/patches/patch-ab +++ b/finance/gnucash-current/patches/patch-ab @@ -1,6 +1,6 @@ -$NetBSD: patch-ab,v 1.1.1.1 2007/05/13 22:43:38 wiz Exp $ +$NetBSD: patch-ab,v 1.2 2007/06/19 23:15:53 joerg Exp $ ---- src/app-utils/gnc-ui-util.c.orig 2007-04-28 23:16:37.000000000 +0000 +--- src/app-utils/gnc-ui-util.c.orig 2007-06-02 17:56:55.000000000 +0000 +++ src/app-utils/gnc-ui-util.c @@ -103,6 +103,14 @@ gnc_configure_account_separator (void) free(string); @@ -71,6 +71,15 @@ $NetBSD: patch-ab,v 1.1.1.1 2007/05/13 22:43:38 wiz Exp $ guint8 num_decimal_places = 0; char *temp_ptr = temp_buf; +@@ -1687,7 +1695,7 @@ number_to_words(gdouble val, gint64 deno + if (val < 0) val = -val; + if (denom < 0) denom = -denom; + +- int_part = trunc(val); ++ int_part = floor(val); + frac_part = round((val - int_part) * denom); + + int_string = integer_to_words(int_part); @@ -1803,13 +1811,13 @@ xaccParseAmount (const char * in_str, gb { group_separator = g_utf8_get_char(lc->mon_thousands_sep); |