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