Fixed bug #21801
authorJohn Darrington <john@darrington.wattle.id.au>
Tue, 18 Mar 2008 08:08:12 +0000 (08:08 +0000)
committerJohn Darrington <john@darrington.wattle.id.au>
Tue, 18 Mar 2008 08:08:12 +0000 (08:08 +0000)
src/data/ChangeLog
src/data/data-in.c

index 75313fee5526edc8e5c799f23a6ee17208a5d031..064108a4e94daf03cdca9d65dfae7db546f01e1b 100644 (file)
@@ -1,3 +1,8 @@
+2008-03-18  John Darrington <john@darrington.wattle.id.au>
+
+       * data-in.c: If category is custom currency, then use
+       numeric format for input.
+
 2008-03-06  Ben Pfaff  <blp@gnu.org>
 
        * dictionary.c (var_name_is_insertable): New function.
index cde7c07f8c58b0272e465be98bf64e53fb330956..28d6da2a42b7b2629779838b28e80000e28f90f0 100644 (file)
@@ -171,7 +171,10 @@ parse_number (struct data_in *i)
   int save_errno;
   char *tail;
 
-  assert (fmt_get_category (i->format) != FMT_CAT_CUSTOM);
+  if  (fmt_get_category (i->format) == FMT_CAT_CUSTOM)
+    {
+      style = settings_get_style (FMT_F);
+    }
 
   /* Trim spaces and check for missing value representation. */
   if (trim_spaces_and_check_missing (i))