X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Ftab.c;h=a158b22979e1cb79b9ec3f2dc2bd57e325ef42e9;hb=66a8687fbbe219b8c5b8d4dcd7aa2249fd55f5cf;hp=8d24aab07bb720dd35621135b6133d1a1334728e;hpb=0b676d85cb983fa0e719de9300935d2c8b549b14;p=pspp diff --git a/src/output/tab.c b/src/output/tab.c index 8d24aab07b..a158b22979 100644 --- a/src/output/tab.c +++ b/src/output/tab.c @@ -105,6 +105,8 @@ tab_create (int nc, int nr) t->fmtmap[RC_INTEGER] = ugly[RC_INTEGER]; t->fmtmap[RC_OTHER] = *settings_get_format (); + memset (t->styles, 0, sizeof t->styles); + t->col_ofs = t->row_ofs = 0; return t; @@ -823,6 +825,11 @@ tab_get_cell (const struct table *table, int x, int y, cell->n_contents = 0; } } + + int style_idx = (opt & TAB_STYLE_MASK) >> TAB_STYLE_SHIFT; + const struct cell_style *style = t->styles[style_idx]; + if (style) + cell->style = style; } static int