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
This commit is contained in:
Christian Stimming 2010-02-03 20:54:26 +00:00
parent 2e6e8ed5bc
commit e08fe2a2be

View File

@ -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