Make caption into table_cell too.
[pspp] / src / output / tex.c
index cd90c3ab468855bedf7fce436954e00f8a9ad72c..b6064097495b9006684f4e88764aeb4dc429bed0 100644 (file)
@@ -410,11 +410,11 @@ tex_output_table (struct tex_driver *tex, const struct table_item *item)
 
   shipout (&tex->token_list, "\n{\\parindent=0pt\n");
 
-  const struct table_item_text *caption = table_item_get_caption (item);
+  const struct table_cell *caption = table_item_get_caption (item);
   if (caption)
     {
       shipout (&tex->token_list, "{\\sl ");
-      tex_escape_string (tex, caption->content, false);
+      tex_escape_string (tex, caption->text, false);
       shipout (&tex->token_list, "}\n\n");
     }
   struct footnote **f;