}
}
+ 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