penpot/frontend/test/frontend_tests
Pablo Alba ad4359efec 🐛 Keep swap slots when pasting a nested copy with a swapped component
Copying a copy nested inside another copy moved the shape-ref of every
shape under it up by the same number of levels. Below a nested copy that
was swapped in one of the dropped levels that count is too high: the swap
already points it into the swapped-in main, so its children ended up one
level too far and the paste failed to save with :missing-slot.

Count the levels per nested head instead, stopping at the level where it
was swapped (new ctf/get-swap-level), for the copied head too. The ref
chain used to collect touched flags now also follows deleted components,
like advance-shape-ref already did, so inherited slots are kept.

Closes #13076

AI-assisted-by: claude-opus-5-5
2026-11-20 11:41:37 +01:00
..
2026-11-05 23:59:32 +01:00
2026-11-04 12:05:38 +01:00