X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Ftext-item.c;h=5b18e54c5d4618c693865fb5e9d624accc8ef852;hb=e6bb779b866f297b736a7f93a0c8aa741131726f;hp=231a5c1fb7e87008160f03b8433f58880115421d;hpb=d523d6fa44e79bbca2b2cce792a7f25cca0d3aef;p=pspp diff --git a/src/output/text-item.c b/src/output/text-item.c index 231a5c1fb7..5b18e54c5d 100644 --- a/src/output/text-item.c +++ b/src/output/text-item.c @@ -101,9 +101,9 @@ text_item_to_table_item (struct text_item *text_item) struct cell_style *style = pool_alloc (tab->container, sizeof *style); *style = (struct cell_style) CELL_STYLE_INITIALIZER; - if (text_item->font) - style->font = pool_strdup (tab->container, text_item->font); - style->font_size = text_item->font_size; + 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; @@ -118,13 +118,14 @@ text_item_to_table_item (struct text_item *text_item) struct table_item *table_item = table_item_create (&tab->table, NULL, NULL); text_item_unref (text_item); return table_item; -} +} + static void text_item_destroy (struct output_item *output_item) { struct text_item *item = to_text_item (output_item); free (item->text); - free (item->font); + free (item->typeface); free (item); }