CTABLES: Fix crash with single nesting level, no label, and moving labels.
commit928c1d754cfab8997d7533c8cb26440334af31e1
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 24 Feb 2024 18:50:02 +0000 (24 10:50 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 24 Feb 2024 18:53:03 +0000 (24 10:53 -0800)
tree5968642f0d8aea8d4ba2f76d54d6f5dfde6ae3df
parent5237751f056148020fc02cec406321d8cd092062
CTABLES: Fix crash with single nesting level, no label, and moving labels.

This fixes a crash for the following input:

DATA LIST LIST NOTABLE /year (F4.0).
BEGIN DATA
2020
2021
2022
2020
2020
END DATA.

CTABLES
  /VLABELS VARIABLES=year DISPLAY=NONE
  /TABLE year [C]
  /CLABELS ROWLABELS=OPPOSITE.

Thanks to Frans Houweling for reporting this bug and providing the test
case.
src/language/commands/ctables.c
tests/language/commands/ctables.at