diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-03-08 11:37:18 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-03-16 14:51:41 +0100 |
commit | 596ff2344c5c3127209fe5e24381045129c8a568 (patch) | |
tree | 42e3cb4d3034c12e18f57e4e410ea3c6d9bee711 /source/pdf | |
parent | 37451d0648a01ffe91ac14e9b27b4ee3b0b881f1 (diff) | |
download | mupdf-596ff2344c5c3127209fe5e24381045129c8a568.tar.xz |
Use convenience function in pdf_set_annot_contents.
Diffstat (limited to 'source/pdf')
-rw-r--r-- | source/pdf/pdf-annot-edit.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/pdf/pdf-annot-edit.c b/source/pdf/pdf-annot-edit.c index d9a3ec2d..4f5ffadd 100644 --- a/source/pdf/pdf-annot-edit.c +++ b/source/pdf/pdf-annot-edit.c @@ -271,9 +271,7 @@ pdf_copy_annot_contents(fz_context *ctx, pdf_annot *annot) void pdf_set_annot_contents(fz_context *ctx, pdf_annot *annot, const char *text) { - pdf_document *doc = annot->page->doc; - pdf_dict_put_drop(ctx, annot->obj, PDF_NAME_Contents, - pdf_new_text_string(ctx, doc, text)); + pdf_dict_put_text_string(ctx, annot->obj, PDF_NAME_Contents, text); pdf_dirty_annot(ctx, annot); } |