summaryrefslogtreecommitdiff
path: root/source/tools/murun.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-02-27 11:24:02 +0100
committerTor Andersson <tor.andersson@artifex.com>2018-03-22 14:58:01 +0100
commit21e0da7e2715df87c93433ba9f99be308e6ec814 (patch)
tree4a4c65af79dd7175c6c23ec628504c133bbd069e /source/tools/murun.c
parentf3b0e4373af7500155e470931e5a50060f5b4612 (diff)
downloadmupdf-21e0da7e2715df87c93433ba9f99be308e6ec814.tar.xz
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.
Diffstat (limited to 'source/tools/murun.c')
-rw-r--r--source/tools/murun.c2
1 files changed, 1 insertions, 1 deletions
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);
}