mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 17:50:38 +00:00
Converting a rect to a path gave an outline that went back to its start with a line and stayed open, so a stroke missed its join at the first corner. With the WASM engine on, the engine converts the rect and closes the outline, so the two engines gave different paths for one shape. The rect's outline now ends with `close-path`, as the WASM engine's does (user decision). The path editor closes subpaths its own way on entry, which its lifecycle test now expects. Found by the WASM replay of the pinned generated programs (program 329), which passes with the change. Tests: `path-data-test/shape-to-path-rect-closes-its-outline`. The conversion is outside the paths the component benchmark measures; it is not run. AI-assisted-by: claude-opus-5-5