mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
Comp positions were computed with unchecked i32 arithmetic on values from files: import added a layer's origin to the cmls `Ofst` (and truncated wider integers with `as i32`), export subtracted the origin from the stored position, and applying a comp subtracted the current position. Extreme values panicked with overflow checks on and wrapped otherwise. Import now keeps offsets at i64 and drops a position whose sum does not fit, with an import warning; export omits an `Ofst` that does not fit; applying a comp skips a move that does not fit. Visibility of the same entries is kept. Co-authored-by: Claude Opus 5.5 <[email protected]>