tab: Fix implementation of "middle" vertical alignment in tab_get_cell().
[pspp] / src / output / tab.c
index f6f965022e14daaa6fc8d91ab34f8c540cbb906b..4d852daebc506f6fe562d85f1c2d5b8c29ac5c9f 100644 (file)
@@ -513,7 +513,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];