X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Ftable.c;h=09ed509e35bfac726be760d9e2210db17f89144e;hb=4cc4c884f59305fa201bd6aa3dcafc5aa8393dc1;hp=eabcc85b89f846bd26969a9e85533e924a6191a0;hpb=21f20b8cb6460fd5ac9db7fde038bc00cfa80831;p=pspp diff --git a/src/output/table.c b/src/output/table.c index eabcc85b89..09ed509e35 100644 --- a/src/output/table.c +++ b/src/output/table.c @@ -29,10 +29,9 @@ #include "libpspp/compiler.h" #include "libpspp/pool.h" #include "libpspp/str.h" +#include "output/output-item.h" #include "output/pivot-table.h" -#include "output/table-item.h" #include "output/table.h" -#include "output/text-item.h" #include "gl/xalloc.h" @@ -505,8 +504,8 @@ table_get_cell (const struct table *t, int x, int y, struct table_cell *cell) = t->styles[(opt & TAB_STYLE_MASK) >> TAB_STYLE_SHIFT]; static const struct pivot_value empty_value = { - .type = PIVOT_VALUE_TEXT, .text = { + .type = PIVOT_VALUE_TEXT, .local = (char *) "", .c = (char *) "", .id = (char *) "", @@ -528,12 +527,13 @@ table_get_cell (const struct table *t, int x, int y, struct table_cell *cell) else { const struct pivot_value *v = cc ? cc : &empty_value; + const struct pivot_value_ex *ex = pivot_value_ex (v); *cell = (struct table_cell) { .d = { [H] = { x, x + 1 }, [V] = { y, y + 1 } }, .options = opt, .value = v, - .font_style = v->font_style ? v->font_style : &style->font_style, - .cell_style = v->cell_style ? v->cell_style : &style->cell_style, + .font_style = ex->font_style ? ex->font_style : &style->font_style, + .cell_style = ex->cell_style ? ex->cell_style : &style->cell_style, }; }