pivot-output: Fix argument order that made lots of weird rotated headings.
authorBen Pfaff <blp@cs.stanford.edu>
Tue, 1 Jan 2019 07:13:12 +0000 (23:13 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Tue, 1 Jan 2019 07:14:18 +0000 (23:14 -0800)
Fixes: 5cab4cf3322f ("output: Introduce pivot tables.")
src/output/pivot-output.c

index b1bfa31fd1a5a47361e0436c65eb24433aa4392e..d6925ceb83030a4f30f6ff3f8206f2d1cbc13daa 100644 (file)
@@ -370,8 +370,8 @@ pivot_table_submit_layer (const struct pivot_table *st,
                     &st->areas[PIVOT_AREA_COLUMN_LABELS],
                     PIVOT_AREA_COLUMN_LABELS,
                     &st->areas[PIVOT_AREA_CORNER], footnotes,
-                    st->rotate_inner_column_labels,
-                    st->show_values, st->show_variables, false);
+                    st->show_values, st->show_variables,
+                    st->rotate_inner_column_labels, false);
 
   compose_headings (table,
                     &st->axes[PIVOT_AXIS_ROW], V, &st->axes[PIVOT_AXIS_COLUMN],
@@ -384,8 +384,8 @@ pivot_table_submit_layer (const struct pivot_table *st,
                     &st->areas[PIVOT_AREA_ROW_LABELS],
                     PIVOT_AREA_ROW_LABELS,
                     &st->areas[PIVOT_AREA_CORNER], footnotes,
-                    false, st->show_values, st->show_variables,
-                    st->rotate_outer_row_labels);
+                    st->show_values, st->show_variables,
+                    false, st->rotate_outer_row_labels);
 
   size_t *dindexes = xcalloc (st->n_dimensions, sizeof *dindexes);
   size_t y = 0;