When cross-compiling, also build native binaries, and use them to create
[pspp] / src / output / text-item.c
index ba0f3873adb0071f2dc996f62b3846d2117ccf02..f892e9277453a1fd406b8f3f447bce6190bc984a 100644 (file)
@@ -121,9 +121,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);