CTABLES: Fix issue with special case for SLABELS POSITION=ROW.
[pspp] / src / language / stats / ctables.c
index 565c8ce1db10cbd512683973ee3c90968f3f24d2..deac6e9755d9d6877927425327adf816f2ad2b53 100644 (file)
@@ -4889,7 +4889,7 @@ ctables_table_output (struct ctables *ct, struct ctables_table *t)
                   {
                     int leaf = cell->axes[a].leaf;
                     if (a == t->summary_axis && !summary_dimension)
-                      leaf += j;
+                      leaf += specs->specs[j].axis_idx;
                     dindexes[n_dindexes++] = leaf;
                   }