summaryrefslogtreecommitdiff
path: root/source/pdf
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-06-28 14:37:40 +0200
committerTor Andersson <tor.andersson@artifex.com>2018-07-04 17:23:21 +0200
commitbc214b010556553720b8ab6eb6a41dff0057e5d1 (patch)
tree90b5aa036e0d6ff00f10724ae36b96fc1bc28f9f /source/pdf
parentd196428954d2e2ce635689c7f925e8f37ee4c67d (diff)
downloadmupdf-bc214b010556553720b8ab6eb6a41dff0057e5d1.tar.xz
Don't forget to resolve indirect references when clearing dirty flag.
Diffstat (limited to 'source/pdf')
-rw-r--r--source/pdf/pdf-object.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/pdf/pdf-object.c b/source/pdf/pdf-object.c
index bc856644..ff425a8f 100644
--- a/source/pdf/pdf-object.c
+++ b/source/pdf/pdf-object.c
@@ -1647,6 +1647,7 @@ void pdf_dirty_obj(fz_context *ctx, pdf_obj *obj)
void pdf_clean_obj(fz_context *ctx, pdf_obj *obj)
{
+ RESOLVE(obj);
if (obj < PDF_LIMIT)
return;
obj->flags &= ~PDF_FLAGS_DIRTY;