output: Add support for colors for rules.
[pspp] / src / output / table-casereader.c
index 485014dc81a20eac816f91ed34435033d2910676..ecd85a1df469e21bb3033bc746e760742b811807 100644 (file)
@@ -113,7 +113,6 @@ table_casereader_get_cell (const struct table *t, int x, int y,
   cell->contents = &cell->inline_contents;
   cell->n_contents = 1;
   cell->inline_contents.options = TAB_RIGHT;
-  cell->inline_contents.table = NULL;
   cell->inline_contents.n_footnotes = 0;
   if (tc->heading != NULL)
     {
@@ -143,13 +142,14 @@ table_casereader_get_cell (const struct table *t, int x, int y,
 
 static int
 table_casereader_get_rule (const struct table *t, enum table_axis axis,
-                           int x UNUSED, int y)
+                           int x UNUSED, int y,
+                           struct cell_color *color UNUSED)
 {
   struct table_casereader *tc = table_casereader_cast (t);
   if (axis == TABLE_VERT)
     return tc->heading != NULL && y == 1 ? TAL_1 : TAL_0;
   else
-    return TAL_GAP;
+    return TAL_0;
 }
 
 static const struct table_class table_casereader_class =