work
[pspp] / src / output / tab.c
index f6f965022e14daaa6fc8d91ab34f8c540cbb906b..19f7072dd0f23e49ef7d00b1c1e7b7a0a1b4ca66 100644 (file)
@@ -484,7 +484,6 @@ tab_get_cell (const struct table *table, int x, int y,
 
   cell->options = opt;
   cell->n_footnotes = 0;
-  cell->destructor = NULL;
 
   int style_idx = (opt & TAB_STYLE_MASK) >> TAB_STYLE_SHIFT;
   const struct area_style *style = t->styles[style_idx];
@@ -513,7 +512,7 @@ tab_get_cell (const struct table *table, int x, int y,
            : TABLE_HALIGN_RIGHT);
       enum table_valign valign
         = ((opt & TAB_VALIGN) == TAB_TOP ? TABLE_VALIGN_TOP
-           : (opt & TAB_VALIGN) == TAB_CENTER ? TABLE_VALIGN_CENTER
+           : (opt & TAB_VALIGN) == TAB_MIDDLE ? TABLE_VALIGN_CENTER
            : TABLE_VALIGN_BOTTOM);
 
       cell->style = &styles[halign][valign];
@@ -563,8 +562,6 @@ static const struct table_class tab_table_class = {
   tab_destroy,
   tab_get_cell,
   tab_get_rule,
-  NULL,                         /* paste */
-  NULL,                         /* select */
 };
 
 struct tab_table *