From a909875417dc1891824b59eb6bf8af7a6fd676d8 Mon Sep 17 00:00:00 2001 From: Dave Peticolas Date: Sun, 1 Oct 2000 09:23:36 +0000 Subject: [PATCH] Minor fix to docs and number parsing. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@2992 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/engine/util.c | 4 ++++ src/engine/util.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/engine/util.c b/src/engine/util.c index 8d7a699902..aa9bf74be4 100644 --- a/src/engine/util.c +++ b/src/engine/util.c @@ -1022,6 +1022,10 @@ xaccParseAmount (const char * in_str, gboolean monetary, double *result, *out++ = *in; next_state = PRE_GROUP_ST; } + else if (*in == decimal_point) + { + next_state = FRAC_ST; + } else if (isspace(*in)) { } diff --git a/src/engine/util.h b/src/engine/util.h index 12d283aee6..a52a2e3abe 100644 --- a/src/engine/util.h +++ b/src/engine/util.h @@ -221,7 +221,7 @@ int gnc_locale_decimal_places( void ); * PRTSEP -- print comma-separated K's * PRTNMN -- print as non-monetary value * PRTEUR -- print as EURO value (2 decimal places, EUR as currency - * symbol if PRTSYM is specified, mutually exclisive with PRTSHR) + * symbol if PRTSYM is specified, mutually exclusive with PRTSHR) * PRTCUR -- print as a currency price, with 5 decimals, overides PRTSHR * * If non-NULL, the curr_code argument overrides the default currency