From 3f3bcd74f0329a0a9a6913f9cffebd9d965bf93e Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 3 Mar 2016 13:31:42 +0100 Subject: Take pdf_obj argument to pdf_is_stream. --- source/pdf/pdf-appearance.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/pdf/pdf-appearance.c') diff --git a/source/pdf/pdf-appearance.c b/source/pdf/pdf-appearance.c index 49de8cf9..6ddf3240 100644 --- a/source/pdf/pdf-appearance.c +++ b/source/pdf/pdf-appearance.c @@ -1597,7 +1597,7 @@ void pdf_set_annot_appearance(fz_context *ctx, pdf_document *doc, pdf_annot *ann /* See if there is a current normal appearance */ ap_obj = pdf_dict_getl(ctx, obj, PDF_NAME_AP, PDF_NAME_N, NULL); - if (!pdf_is_stream(ctx, doc, pdf_to_num(ctx, ap_obj), pdf_to_gen(ctx, ap_obj))) + if (!pdf_is_stream(ctx, ap_obj)) ap_obj = NULL; if (ap_obj == NULL) -- cgit v1.2.3