From a2bc5467fbee81ad9b493f7a9471d76cbb4d7caf Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sat, 13 Aug 2022 23:08:33 -0700 Subject: [PATCH] refactor --- src/language/stats/ctables.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/language/stats/ctables.c b/src/language/stats/ctables.c index 6337366acb..2490efde10 100644 --- a/src/language/stats/ctables.c +++ b/src/language/stats/ctables.c @@ -4712,10 +4712,10 @@ ctables_prepare_table (struct ctables_table *t) n_drop = a != PIVOT_AXIS_LAYER; else if (t->clabels_to_axis != PIVOT_AXIS_LAYER) n_drop = a == t->clabels_from_axis ? 2 : 0; - else if (a != PIVOT_AXIS_LAYER && a != t->clabels_from_axis) - n_drop = 1; + else if (a == t->clabels_from_axis) + drop_inner = true; else - drop_inner = a == t->clabels_from_axis; + n_drop = a != PIVOT_AXIS_LAYER; break; case CTAT_LAYERROW: -- 2.30.2