cairo: Remove unneeded code.
[pspp] / src / output / text-item.c
index ba0f3873adb0071f2dc996f62b3846d2117ccf02..95bb7723c84147043a2e429489f29f8ca50d1626 100644 (file)
@@ -50,9 +50,6 @@ text_item_type_to_string (enum text_item_type type)
     case TEXT_ITEM_LOG:
       return _("Log");
 
-    case TEXT_ITEM_EJECT_PAGE:
-      return _("Page Break");
-
     default:
       return _("Text");
     }
@@ -121,9 +118,9 @@ text_item_to_table_item (struct text_item *text_item)
 {
   struct table *tab = table_create (1, 1, 0, 0, 0, 0);
 
-  struct area_style *style = pool_alloc (tab->container, sizeof *style);
-  *style = (struct area_style) { AREA_STYLE_INITIALIZER__,
-                                 .cell_style.halign = TABLE_HALIGN_LEFT };
+  struct table_area_style *style = pool_alloc (tab->container, sizeof *style);
+  *style = (struct table_area_style) { TABLE_AREA_STYLE_INITIALIZER__,
+                                       .cell_style.halign = TABLE_HALIGN_LEFT };
   struct font_style *font_style = &style->font_style;
   if (text_item->typeface)
     font_style->typeface = pool_strdup (tab->container, text_item->typeface);