photocraft/crates/format/tests
mroxso 57d488032c
fix(doc): variable definitions follow layer id remapping on copy and load (#5023)
* fix(doc): variable definitions follow layer id remapping on copy and load

A duplicated document (image.duplicate, history.newDocument) or a .pcraft
loaded with remapped ids assigned fresh layer ids but cloned VariableDef.layer
unchanged, so datasets silently drove no layer (or, after remap, a colliding
one). Remap variable targets through the same id map as layer comps and
slices; a dangling target keeps a non-colliding placeholder. A merged-only
duplicate drops the whole variable binding set, matching how it drops comps.

Closes #4969

* style: cargo fmt duplicate_variables test

---------

Co-authored-by: highperfocused <highperfocused@pm.me>
2026-10-14 15:02:43 -07:00
..
common Rulers: drag the zero point from the ruler corner, double-click resets it (#2955) (#3505) 2026-10-13 13:24:17 -04:00
analysis.rs Format: adopt the craft-family rustfmt.toml and format the workspace 2026-10-04 11:31:17 -04:00
autosave.rs Autosave: best-effort cleanup after commit; sweep orphaned recovery bundles (#3489) (#3502) 2026-10-11 23:31:23 -04:00
corruption.rs Format: overflow-safe blob decode and bounds-checked ZIP reads (#3486) (#3501) 2026-10-12 10:08:20 -04:00
directory_symlinks.rs fix(format): harden directory-bundle cleanup 2026-10-13 09:20:31 -06:00
layer_labels.rs Add layer and group color labels (#1283) (#1289) 2026-10-08 20:32:09 -04:00
roundtrip.rs fix(doc): variable definitions follow layer id remapping on copy and load (#5023) 2026-10-14 15:02:43 -07:00
smart_contents.rs Keep duplicated Smart Objects linked to shared contents (#2222) 2026-10-10 05:05:56 -04:00