X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fstats%2Fctables.c;h=341e68e0d9039c3b4a7cc5b85aaed688e40614f5;hb=5327d77be2296f6be3f532c20456eab839dc7c62;hp=836a974d824dda2f6f00c7cffa96df4e4b97c559;hpb=0891406f7c1039af8c769b8069691246566fd894;p=pspp diff --git a/src/language/stats/ctables.c b/src/language/stats/ctables.c index 836a974d82..341e68e0d9 100644 --- a/src/language/stats/ctables.c +++ b/src/language/stats/ctables.c @@ -4689,6 +4689,17 @@ ctables_prepare_table (struct ctables_table *t) } } + if (at == CTAT_SUBTABLE && t->label_axis[PIVOT_AXIS_ROW] == PIVOT_AXIS_COLUMN) + { + size_t n_drop = (a == PIVOT_AXIS_LAYER ? 0 + : a == PIVOT_AXIS_ROW ? 2 + : 0); + for (size_t i = 0; i < n_drop; i++) + if (nest->n_areas[at] > 0) + nest->n_areas[at]--; + continue; + } + bool drop_last = (at == CTAT_SUBTABLE ? a != PIVOT_AXIS_LAYER : at == CTAT_ROW ? a == PIVOT_AXIS_COLUMN : at == CTAT_COL ? a == PIVOT_AXIS_ROW