From e08fe2a2be8db310c8d22fc086efb9438360bfb7 Mon Sep 17 00:00:00 2001 From: Christian Stimming Date: Wed, 3 Feb 2010 20:54:26 +0000 Subject: [PATCH] Bug #608306: check amount_word should print the fraction correctly. Patch by Thomas Troesch: Checks printed the wrong string for the amount_words. The utility number_to_words had produced e.g. from 100.04 -> One Hundred and 4/100. The word string should be One Hundred and 04/100. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18607 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/app-utils/gnc-ui-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app-utils/gnc-ui-util.c b/src/app-utils/gnc-ui-util.c index aad2c40f37..b2a27bb868 100644 --- a/src/app-utils/gnc-ui-util.c +++ b/src/app-utils/gnc-ui-util.c @@ -1857,7 +1857,7 @@ number_to_words(gdouble val, gint64 denom) /* Inside of the gettext macro _(...) we must not use any macros but only plain string literals. For this reason, convert the strings separately. */ - nomin_string = g_strdup_printf("%" G_GINT64_FORMAT, frac_part); + nomin_string = g_strdup_printf("%02" G_GINT64_FORMAT, frac_part); denom_string = g_strdup_printf("%" G_GINT64_FORMAT, denom); full_string = /* Translators: This is for the "amount, in words" field in check