summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-write.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-11-25 15:43:44 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-12-12 12:58:35 +0100
commit026d81043a29c6be61c22b67c01d52366151098e (patch)
treeb80eabb994f0aa4254e6d164439af6cf0afcd36b /source/pdf/pdf-write.c
parentb0c27de4340fdab0d5dc2b01672888bd34edc8a1 (diff)
downloadmupdf-026d81043a29c6be61c22b67c01d52366151098e.tar.xz
Change pdf_dict_put_val to pdf_dict_put_val_null.
It's only used to 'fix' duff indirect references when cleaning PDF files. Writing general values into dictionaries should be done by key, not by internal index.
Diffstat (limited to 'source/pdf/pdf-write.c')
-rw-r--r--source/pdf/pdf-write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-write.c b/source/pdf/pdf-write.c
index 224da50c..ae2f4122 100644
--- a/source/pdf/pdf-write.c
+++ b/source/pdf/pdf-write.c
@@ -608,7 +608,7 @@ static int markobj(fz_context *ctx, pdf_document *doc, pdf_write_state *opts, pd
{
DEBUGGING_MARKING(indent(); printf("DICT[%d/%d] = %s\n", i, n, pdf_to_name(ctx, pdf_dict_get_key(ctx, obj, i))));
if (markobj(ctx, doc, opts, pdf_dict_get_val(ctx, obj, i)))
- pdf_dict_put_val_drop(ctx, obj, i, pdf_new_null(ctx, doc));
+ pdf_dict_put_val_null(ctx, obj, i);
}
}