mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 09:46:59 -06:00
Duplicate Artboards, the Artboard tool's Alt-drag (artboard.move with copy) and Paste of a copied artboard gave the new artboard the largest artboard id plus one, saturating. In a document with an artboard id of 4,294,967,295 (u32::MAX), which only a hand-made file has, the copy got that same id. Artboard guides record the id of their artboard. Deleting either of the two artboards with that id then deleted the guides of both, and guide.list reported the copy's guides on the other one. push_artboard_copy now takes the id from Document::next_artboard_id, as artboard.new and Convert to Artboards do. Since the #1718 fix, that function returns the smallest free id when the largest is u32::MAX. In a document whose artboard ids are all below u32::MAX, a copy gets the same id as before. Docs: docs/target-app-parity.md.