summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-annot-edit.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-03-03 13:31:42 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-03-14 17:08:28 +0100
commit3f3bcd74f0329a0a9a6913f9cffebd9d965bf93e (patch)
tree27db0642b7397bbc09e8459ea4ad4273116fe974 /source/pdf/pdf-annot-edit.c
parente8afed7205f32d776ba406b167b5097d728da5f6 (diff)
downloadmupdf-3f3bcd74f0329a0a9a6913f9cffebd9d965bf93e.tar.xz
Take pdf_obj argument to pdf_is_stream.
Diffstat (limited to 'source/pdf/pdf-annot-edit.c')
-rw-r--r--source/pdf/pdf-annot-edit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/pdf/pdf-annot-edit.c b/source/pdf/pdf-annot-edit.c
index 06b3495e..66704a2f 100644
--- a/source/pdf/pdf-annot-edit.c
+++ b/source/pdf/pdf-annot-edit.c
@@ -65,13 +65,13 @@ pdf_update_annot(fz_context *ctx, pdf_document *doc, pdf_annot *annot)
n = pdf_dict_get(ctx, ap, PDF_NAME_N); /* normal state */
/* lookup current state in sub-dictionary */
- if (!pdf_is_stream(ctx, doc, pdf_to_num(ctx, n), pdf_to_gen(ctx, n)))
+ if (!pdf_is_stream(ctx, n))
n = pdf_dict_get(ctx, n, as);
pdf_drop_xobject(ctx, annot->ap);
annot->ap = NULL;
- if (pdf_is_stream(ctx, doc, pdf_to_num(ctx, n), pdf_to_gen(ctx, n)))
+ if (pdf_is_stream(ctx, n))
{
fz_try(ctx)
{