This only worked if the transformation chain had one element.
Thanks to Zhou Geng for reporting this bug as poc30 in the report here:
https://lists.gnu.org/archive/html/bug-gnu-pspp/2024-03/msg00015.html
chain->xforms = x2nrealloc (chain->xforms, &chain->allocated,
sizeof *chain->xforms);
- insert_element (chain->xforms, 1, sizeof *chain->xforms, 0);
+ insert_element (chain->xforms, chain->n, sizeof *chain->xforms, 0);
chain->xforms[0] = *t;
chain->n++;
}