output: Add support for fonts.
[pspp] / src / output / table-item.c
index 645d8ca45f71c8387e675c6f518dce71937d8cd7..d2d3ea54abc79bfe287ad72c8e2fe691c27241d3 100644 (file)
@@ -51,6 +51,7 @@ table_item_text_clone (const struct table_item_text *old)
     .footnotes = xmemdup (old->footnotes,
                           old->n_footnotes * sizeof *old->footnotes),
     .n_footnotes = old->n_footnotes,
+    .style = cell_style_clone (old->style),
   };
   return new;
 }
@@ -62,6 +63,7 @@ table_item_text_destroy (struct table_item_text *text)
     {
       free (text->content);
       free (text->footnotes);
+      cell_style_free (text->style);
       free (text);
     }
 }