mirror of
https://github.com/penpot/penpot.git
synced 2026-11-22 02:10:46 +00:00
The grid layout of the WASM renderer counted the gaps between tracks as the number of tracks less one, which underflows for an empty track list (a panic in a debug build, a wrapped count in release), and spread the space between tracks over that count, a division by zero for one track. An empty list has no gap, and space between fewer than two tracks starts them at the padding. Tests: test_space_between_without_tracks_places_nothing, test_space_between_with_one_track_starts_it_at_the_padding; the render-wasm tests pass (364). The component sync benchmark does not reach the renderer and is not run. AI-assisted-by: claude-opus-5-5