diff options
author | Paul Gardiner <paulg.artifex@glidos.net> | 2013-08-28 10:33:03 +0100 |
---|---|---|
committer | Paul Gardiner <paulg.artifex@glidos.net> | 2013-08-28 10:33:03 +0100 |
commit | 9eb83b85cc1d1bde2bb4ad7e106b69415520ef8a (patch) | |
tree | 06ccd99c45bde419687d75483e716666e83f188f /source/tools | |
parent | dca49ac644409e9bed09812e03977e649519f5d7 (diff) | |
download | mupdf-9eb83b85cc1d1bde2bb4ad7e106b69415520ef8a.tar.xz |
Fix bad interaction between incremental update and object streams
The symptoms were that, created annoations were in some cases not saved.
Some updated objects withing the document were not being moved into the
incremental-save xref section. That in turn was due to nodes within the
hierarchy of those objects not having their parent_num field set. The
objects falling foul of this problem were those held in object streams.
When any one object from a stream is cached, the whole stream is read and
all other objects from that stream are also cached, but only the initial
one has its parent_num set. This patch ensures that all objects from a
stream are accounted for. In fact, for the initially-requested object, we
now set parent_num twice, but that is harmless and the code to avoid doing
so wouls be an unnecessary complication.
Diffstat (limited to 'source/tools')
0 files changed, 0 insertions, 0 deletions