diff options
author | Robin Watts <robin.watts@artifex.com> | 2013-10-15 10:54:46 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-10-16 15:45:36 +0100 |
commit | db9862d792ba55a9c391ec7f3935930579d0bd4e (patch) | |
tree | 6d2198ece93b55699996fcdaee4f0a8f50356ef2 | |
parent | e42e6e8b4d38f6ea84426ac2297fb7cd1143d226 (diff) | |
download | mupdf-db9862d792ba55a9c391ec7f3935930579d0bd4e.tar.xz |
page->contents should be a reference, not the original object.
-rw-r--r-- | source/pdf/pdf-device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-device.c b/source/pdf/pdf-device.c index 4f2458fa..ba5271e0 100644 --- a/source/pdf/pdf-device.c +++ b/source/pdf/pdf-device.c @@ -1350,7 +1350,7 @@ fz_device *pdf_page_write(pdf_document *doc, pdf_page *page) fz_try(ctx) { page->contents = pdf_new_ref(doc, obj); - pdf_dict_puts(page->me, "Contents", obj); + pdf_dict_puts(page->me, "Contents", page->contents); } fz_always(ctx) { |