From 21e0da7e2715df87c93433ba9f99be308e6ec814 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 27 Feb 2018 11:24:02 +0100 Subject: Load most annotations, even if they are missing appearances. Filter out Link and Popup annotations. Links are not comments, popup annotations are auxiliary information for other annotations, so neither of these types should be present in our list of annotations, but all other annotations should be there, whether they have appearance streams or not. Ensure has_new_ap is zero when first loaded, and changed if either the active AP object is changed or the current AP content stream is updated. --- source/tools/murun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/tools') diff --git a/source/tools/murun.c b/source/tools/murun.c index 8b9cd29d..03e55606 100644 --- a/source/tools/murun.c +++ b/source/tools/murun.c @@ -4430,7 +4430,7 @@ static void ffi_PDFAnnotation_updateAppearance(js_State *J) fz_context *ctx = js_getcontext(J); pdf_annot *annot = js_touserdata(J, 0, "pdf_annot"); fz_try(ctx) - pdf_update_appearance(ctx, annot->page->doc, annot); + pdf_update_appearance(ctx, annot); fz_catch(ctx) rethrow(J); } -- cgit v1.2.3