Files
penpot/frontend
Andrey Antukh 3ff1acfb6a 🐛 Fix vector index out of bounds in viewer zoom-to-fit/fill (#8834)
Clamp the frame index to the valid range in zoom-to-fit and
zoom-to-fill events before accessing the frames vector. When the
URL query parameter :index exceeds the number of frames on the
page (e.g. index=1 with a single frame), nth would throw
"No item 1 in vector of length 1". Also adds unit tests covering
the boundary condition.
2026-04-02 09:49:33 +02:00
..
2026-04-01 11:10:28 +02:00
2026-03-26 14:12:11 +01:00
2026-04-01 11:10:28 +02:00
2026-04-01 11:10:28 +02:00