Make caption into table_cell too.
[pspp] / src / output / table.c
index 2bd71cb1b8c99e84653e520c748214eb708e6e8b..90e9491a39ed71e572e2020130e1b95e1843f39a 100644 (file)
@@ -241,7 +241,7 @@ table_collect_footnotes (const struct table_item *item,
                                    footnotes, &allocated, &n);
     }
 
-  const struct table_item_text *caption = table_item_get_caption (item);
+  const struct table_cell *caption = table_item_get_caption (item);
   if (caption)
     footnotes = add_footnotes (caption->footnotes, caption->n_footnotes,
                                footnotes, &allocated, &n);