mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-29 12:38:58 -06:00
clear_parent_tree walked /Nums with chunks_mut(2) and indexed pair[1], so a trailing key without a value that matched the page's StructParents panicked after the page content had already been replaced. Walk whole pairs only and leave an unpaired key as it is: it maps nothing, so there is nothing to clear. Claude-Session: https://claude.ai/code/session_01RUNQSPVXx3dDBabRZHAnjz Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Brandon Thomas <echelon@gmail.com>