X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Ftext-item.c;h=95bb7723c84147043a2e429489f29f8ca50d1626;hb=3b54533821614d17afc61f1cd3b87d3a06fbf4da;hp=ba0f3873adb0071f2dc996f62b3846d2117ccf02;hpb=464a7a97da808da1d8a608e9254dfaad30c9de72;p=pspp diff --git a/src/output/text-item.c b/src/output/text-item.c index ba0f3873ad..95bb7723c8 100644 --- a/src/output/text-item.c +++ b/src/output/text-item.c @@ -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);