mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-12 05:12:39 +00:00
Copying a text frame cloned its story but left the objects anchored in it with the original's item ids. Save does not validate, load runs Document::check and rejects duplicate ids, so a duplicated or pasted frame with an inline graphic produced a file that failed to open with "not a DesignCraft document: duplicate item id". renumber (Duplicate, Alt-drag copy, Paste, Paste into text, parent item overrides) and the data merge copy now give every anchored item in the copied story, its table cells, footnotes and endnotes a fresh id. Anchored text frames from IDML get their own story copy. Assets are not adopted again: the story copy already remapped them. The IDML export tests that relied on duplication to create shared ids now set the shared id explicitly, so the export guard stays covered. Files already saved with duplicate ids still do not open.