mirror of
https://github.com/penpot/penpot.git
synced 2026-04-02 14:41:10 -04:00
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.