table: Get rid of accessor functions for 'h' and 'n' members.
[pspp] / src / output / csv.c
index e2c97a64cd479b3ad5b5e921f6e27ef9d8979bca..04939222410c9e914ceacd15cb02d3f761f3d523 100644 (file)
@@ -215,9 +215,9 @@ csv_submit (struct output_driver *driver,
         csv_output_table_item_text (csv, table_item_get_title (table_item),
                                     "Table");
 
-      for (y = 0; y < table_nr (t); y++)
+      for (y = 0; y < t->n[TABLE_VERT]; y++)
         {
-          for (x = 0; x < table_nc (t); x++)
+          for (x = 0; x < t->n[TABLE_HORZ]; x++)
             {
               struct table_cell cell;