refactor
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 14 Aug 2022 06:08:33 +0000 (23:08 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 14 Aug 2022 06:08:33 +0000 (23:08 -0700)
src/language/stats/ctables.c

index 6337366acbcd7efe3521e4fb7b5a2f37451879ed..2490efde10e9803917180b2f4981061161112c6d 100644 (file)
@@ -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: