render: Fix up layer violation in add_footnote_page().
[pspp] / src / output / render.c
index 423940b068eabaeff29b63e06ffea287820152c0..d26fc46ebcb494adf4eeaf86013c5d5c74880e27 100644 (file)
@@ -26,7 +26,6 @@
 #include "libpspp/hash-functions.h"
 #include "libpspp/hmap.h"
 #include "libpspp/pool.h"
-#include "output/pivot-table.h" /* XXX for PIVOT_AREA_FOOTER */
 #include "output/render.h"
 #include "output/table-item.h"
 #include "output/table.h"
@@ -1510,17 +1509,10 @@ add_footnote_page (struct render_pager *p, const struct table_item *item)
 
   struct table *t = table_create (1, n_footnotes, 0, 0, 0, 0);
 
-  const struct area_style *style = item->table->styles[PIVOT_AREA_FOOTER];
-  if (!style)
-    style = pivot_area_get_default_style (PIVOT_AREA_FOOTER);
-  t->styles[PIVOT_AREA_FOOTER] = area_style_clone (t->container, style);
-
   for (size_t i = 0; i < n_footnotes; i++)
     {
-      table_text_format (t, 0, i, PIVOT_AREA_FOOTER << TAB_STYLE_SHIFT,
-                         "%s. %s", f[i]->marker, f[i]->content);
-      if (f[i]->style)
-        table_add_style (t, 0, i, f[i]->style);
+      table_text_format (t, 0, i, 0, "%s. %s", f[i]->marker, f[i]->content);
+      table_add_style (t, 0, i, f[i]->style);
     }
   render_pager_add_table (p, t, 0);