Patch #6302.
authorBen Pfaff <blp@gnu.org>
Sat, 8 Dec 2007 06:17:00 +0000 (06:17 +0000)
committerBen Pfaff <blp@gnu.org>
Sat, 8 Dec 2007 06:17:00 +0000 (06:17 +0000)
(data_parser_make_active_file): Fix case count
argument to casereader_create_sequential, which fixes data reading
in the GUI.
Provided by John Darrington.

src/language/data-io/ChangeLog
src/language/data-io/data-parser.c

index 4adce992772693aadc23f42ffed2412ef5578b91..112efefba10c1030b518c45a712ada0c03cefac2 100644 (file)
@@ -1,3 +1,12 @@
+2007-12-07  Ben Pfaff  <blp@gnu.org>
+
+       Patch #6302.
+
+       * data-parser.c (data_parser_make_active_file): Fix case count
+       argument to casereader_create_sequential, which fixes data reading
+       in the GUI.
+       Provided by John Darrington.
+
 2007-12-04  Ben Pfaff  <blp@gnu.org>
 
        Move DATA LIST parsing into generic infrastructure, and generalize
index 04c8173203c50c4864b1de620f1f47ce8fca13bb..5fb044a5a003256c3720a12ed6730aee42899360 100644 (file)
@@ -701,8 +701,8 @@ data_parser_make_active_file (struct data_parser *parser, struct dataset *ds,
   r->reader = reader;
   r->value_cnt = dict_get_next_value_idx (dict);
   casereader = casereader_create_sequential (NULL, r->value_cnt,
-                                             -1, &data_parser_casereader_class,
-                                             r);
+                                             CASENUMBER_MAX,
+                                             &data_parser_casereader_class, r);
   proc_set_active_file (ds, casereader, dict);
 }