summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-11-13 15:23:59 +0100
committerTor Andersson <tor.andersson@artifex.com>2017-11-13 17:05:17 +0100
commit0b7754a4c353913d0b181376dd25b9c2a9edd303 (patch)
treedc62f1b671509913c899da0d24795ef5297dbffe
parent65be3177c793bb132c36f3e6bb87c3a6947be4e0 (diff)
downloadmupdf-0b7754a4c353913d0b181376dd25b9c2a9edd303.tar.xz
Never draw Popup annotations.
Popup annotations should never have an appearance stream, but in case they do we shouldn't draw them. The Open property is only to toggle whether the GUI should be showing the Content text editing in a Popup (or Text) annotation, and should not affect drawing the page.
-rw-r--r--source/pdf/pdf-interpret.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/pdf/pdf-interpret.c b/source/pdf/pdf-interpret.c
index 5f974ac5..8b44079e 100644
--- a/source/pdf/pdf-interpret.c
+++ b/source/pdf/pdf-interpret.c
@@ -1078,7 +1078,8 @@ pdf_process_annot(fz_context *ctx, pdf_processor *proc, pdf_document *doc, pdf_p
if (flags & (PDF_ANNOT_IS_INVISIBLE | PDF_ANNOT_IS_HIDDEN))
return;
- if (pdf_annot_has_open(ctx, annot) && !pdf_annot_is_open(ctx, annot))
+ /* popup annotations should never be drawn */
+ if (pdf_annot_type(ctx, annot) == PDF_ANNOT_POPUP)
return;
if (proc->usage)