diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-04-14 13:30:00 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-04-14 13:30:00 +0200 |
commit | 997a4fcacbc0e4767d61f89d1f66b6715e6ded0e (patch) | |
tree | 102c8ed40c7530e7cfb50f0710c6926db81ce240 /pdf | |
parent | be3054ea68ad53e6301aa8d7de52f67897d98785 (diff) | |
download | mupdf-997a4fcacbc0e4767d61f89d1f66b6715e6ded0e.tar.xz |
Add fallback case for links accessed by button annotations.
Diffstat (limited to 'pdf')
-rw-r--r-- | pdf/pdf_annot.c | 5 |
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"); |