Build the cover wrap from the document's last and first page (TYP-759).
⚠️ The two pages are COPIED, not consumed: the body keeps its own numbering, so no page number
shifts and no page changes which side of the binding it falls on. The cover does not follow later
edits to those pages — it is seeded from them once.
⚠️ Not wrapped in set_undo()/set_redo(): the canvas records the cover as one structure step
itself. The page snapshot those take is of the page you are on, so undo restored that page and
left the cover behind.
Build the cover wrap from the document's last and first page (TYP-759).
⚠️ The two pages are COPIED, not consumed: the body keeps its own numbering, so no page number shifts and no page changes which side of the binding it falls on. The cover does not follow later edits to those pages — it is seeded from them once.
⚠️ Not wrapped in set_undo()/set_redo(): the canvas records the cover as one structure step itself. The page snapshot those take is of the page you are on, so undo restored that page and left the cover behind.