mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-14 19:26:56 -04:00
A native file (or a pasted document) whose node, slice or asset ids or whose next-id counter sit at u64::MAX made the next allocation overflow: a panic with overflow checks, a wrapped counter handing out ids already in use without. fix_next_id now leaves ids and counters from 2^62 up out of the count, so new ids start under them; alloc_id saturates. Artboard and graphic style ids take the smallest free id when the largest is u32::MAX instead of wrapping to the reserved 0.