X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Ftable-item.c;h=6d4927326c3e6ea7f89e13de81c0d730b9b56fce;hb=6068787ea557d3a6bb636d1d5b39c75eae30fd6f;hp=d2d3ea54abc79bfe287ad72c8e2fe691c27241d3;hpb=f278ec924a1f795d06a497ca44866aac4cde5c9f;p=pspp diff --git a/src/output/table-item.c b/src/output/table-item.c index d2d3ea54ab..6d4927326c 100644 --- a/src/output/table-item.c +++ b/src/output/table-item.c @@ -35,7 +35,8 @@ table_item_text_create (const char *content) return NULL; struct table_item_text *text = xmalloc (sizeof *text); - *text = (struct table_item_text) { .content = xstrdup (content) }; + *text = (struct table_item_text) { .content = xstrdup (content), + .halign = TAB_LEFT }; return text; } @@ -51,7 +52,8 @@ table_item_text_clone (const struct table_item_text *old) .footnotes = xmemdup (old->footnotes, old->n_footnotes * sizeof *old->footnotes), .n_footnotes = old->n_footnotes, - .style = cell_style_clone (old->style), + .style = cell_style_clone (NULL, old->style), + .halign = old->halign, }; return new; }