projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
output: Support decimal and mixed alignment,
[pspp]
/
src
/
output
/
table-casereader.c
diff --git
a/src/output/table-casereader.c
b/src/output/table-casereader.c
index 018fa6328e546bee6c0000b9d5b8397dda1212de..e1b75ac5da28564684e1dca3f9ac0d53c24e2df1 100644
(file)
--- a/
src/output/table-casereader.c
+++ b/
src/output/table-casereader.c
@@
-106,11
+106,17
@@
table_casereader_get_cell (const struct table *t, int x, int y,
struct ccase *c;
char *s;
struct ccase *c;
char *s;
+ static const struct area_style style = {
+ AREA_STYLE_INITIALIZER__,
+ .cell_style.halign = TABLE_HALIGN_RIGHT
+ };
+
cell->d[TABLE_HORZ][0] = x;
cell->d[TABLE_HORZ][1] = x + 1;
cell->d[TABLE_VERT][0] = y;
cell->d[TABLE_VERT][1] = y + 1;
cell->d[TABLE_HORZ][0] = x;
cell->d[TABLE_HORZ][1] = x + 1;
cell->d[TABLE_VERT][0] = y;
cell->d[TABLE_VERT][1] = y + 1;
- cell->options = TAB_RIGHT;
+ cell->style = &style;
+ cell->options = 0;
cell->n_footnotes = 0;
if (tc->heading != NULL)
{
cell->n_footnotes = 0;
if (tc->heading != NULL)
{