summaryrefslogtreecommitdiff
path: root/pdf/pdf_annot.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2011-04-14 13:30:00 +0200
committerTor Andersson <tor.andersson@artifex.com>2011-04-14 13:30:00 +0200
commit997a4fcacbc0e4767d61f89d1f66b6715e6ded0e (patch)
tree102c8ed40c7530e7cfb50f0710c6926db81ce240 /pdf/pdf_annot.c
parentbe3054ea68ad53e6301aa8d7de52f67897d98785 (diff)
downloadmupdf-997a4fcacbc0e4767d61f89d1f66b6715e6ded0e.tar.xz
Add fallback case for links accessed by button annotations.
Diffstat (limited to 'pdf/pdf_annot.c')
-rw-r--r--pdf/pdf_annot.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/pdf/pdf_annot.c b/pdf/pdf_annot.c
index 2436b0c0..ecb4824a 100644
--- a/pdf/pdf_annot.c
+++ b/pdf/pdf_annot.c
@@ -62,6 +62,11 @@ pdf_load_link(pdf_xref *xref, fz_obj *dict)
}
action = fz_dict_gets(dict, "A");
+
+ /* fall back to additional action button's down/up action */
+ if (!action)
+ action = fz_dict_getsa(fz_dict_gets(dict, "AA"), "U", "D");
+
if (action)
{
obj = fz_dict_gets(action, "S");