X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Ftext-item.c;h=a122caf3bff0c90303fa00077a7f77238db1f538;hb=a7a300e7d9963ce9a26fd87e4db922ed74111731;hp=5b18e54c5d4618c693865fb5e9d624accc8ef852;hpb=e6bb779b866f297b736a7f93a0c8aa741131726f;p=pspp diff --git a/src/output/text-item.c b/src/output/text-item.c index 5b18e54c5d..a122caf3bf 100644 --- a/src/output/text-item.c +++ b/src/output/text-item.c @@ -99,14 +99,16 @@ text_item_to_table_item (struct text_item *text_item) { struct tab_table *tab = tab_create (1, 1); - struct cell_style *style = pool_alloc (tab->container, sizeof *style); - *style = (struct cell_style) CELL_STYLE_INITIALIZER; + struct area_style *style = pool_alloc (tab->container, sizeof *style); + *style = (struct area_style) AREA_STYLE_INITIALIZER; + struct font_style *font_style = &style->font_style; if (text_item->typeface) - style->typeface = pool_strdup (tab->container, text_item->typeface); - style->size = text_item->size; - style->bold = text_item->bold; - style->italic = text_item->italic; - style->underline = text_item->underline; + font_style->typeface = pool_strdup (tab->container, text_item->typeface); + font_style->size = text_item->size; + font_style->bold = text_item->bold; + font_style->italic = text_item->italic; + font_style->underline = text_item->underline; + font_style->markup = text_item->markup; tab->styles[0] = style; int opts = TAB_LEFT;