X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fpivot-table.c;fp=src%2Foutput%2Fpivot-table.c;h=96821170eff043db82a47e88004d19f2ba84747c;hb=94864f7df42dc6495de1f785ec4ba45f33b63515;hp=2adcf62634d32a3385a513cd85e344b9870a0d77;hpb=085811c026897c8deedd5b1e1786c8b51443383f;p=pspp diff --git a/src/output/pivot-table.c b/src/output/pivot-table.c index 2adcf62634..96821170ef 100644 --- a/src/output/pivot-table.c +++ b/src/output/pivot-table.c @@ -696,9 +696,7 @@ pivot_table_create__ (struct pivot_value *title) } /* Creates and returns a new pivot table with the given TITLE and a single cell - with the given CONTENT. - - This is really just for error handling. */ + with the given CONTENT. */ struct pivot_table * pivot_table_create_for_text (struct pivot_value *title, struct pivot_value *content) @@ -1202,12 +1200,14 @@ pivot_table_assign_label_depth (struct pivot_table *table) table->axes[PIVOT_AXIS_COLUMN].label_depth = 1; pivot_axis_assign_label_depth (table, PIVOT_AXIS_LAYER, false); } - -/* Footnotes. */ +void +pivot_table_submit (struct pivot_table *pt) +{ + pivot_table_assign_label_depth (CONST_CAST (struct pivot_table *, pt)); + table_item_submit (table_item_create (pt)); - -static void + static void indent (int indentation) { for (int i = 0; i < indentation * 2; i++)