projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
output: Add support for colors in cells.
[pspp]
/
src
/
output
/
table.c
diff --git
a/src/output/table.c
b/src/output/table.c
index 7f37479984274dc357d50da44f03423d2ea891bd..9a90c61b48807620f76e853cc9e8a1d8876b8758 100644
(file)
--- a/
src/output/table.c
+++ b/
src/output/table.c
@@
-140,6
+140,14
@@
table_get_cell (const struct table *table, int x, int y,
{
assert (x >= 0 && x < table->n[TABLE_HORZ]);
assert (y >= 0 && y < table->n[TABLE_VERT]);
{
assert (x >= 0 && x < table->n[TABLE_HORZ]);
assert (y >= 0 && y < table->n[TABLE_VERT]);
+
+ static const struct cell_style default_style =
+ {
+ .fg = { 0, 0, 0 },
+ .bg = { 255, 255, 255 },
+ };
+ cell->style = &default_style;
+
table->klass->get_cell (table, x, y, cell);
}
table->klass->get_cell (table, x, y, cell);
}