diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2013-08-24 23:07:06 +0200 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2013-08-24 23:38:02 +0200 |
commit | 0bfe9501ebc2e2a2329a5435100ef189b6166219 (patch) | |
tree | bd9ea782ecf2722ce9c51979810778bf48d7107e /source/pdf/pdf-outline.c | |
parent | 8ac325e2550a509995bbad5a28c09c4a3ded0dc1 (diff) | |
download | mupdf-0bfe9501ebc2e2a2329a5435100ef189b6166219.tar.xz |
Support named destinations in remote link annotations.
Previously there was a bug when parsing GoToR link annotations that had
a named destination. mupdf incorrectly attempted to resolve the
destination in the current document. Now the destination name is
present in the link objects returned to the application so it can
resolve any names for GoToR links in the remote document instead.
Diffstat (limited to 'source/pdf/pdf-outline.c')
-rw-r--r-- | source/pdf/pdf-outline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-outline.c b/source/pdf/pdf-outline.c index 2d545b63..1e01b692 100644 --- a/source/pdf/pdf-outline.c +++ b/source/pdf/pdf-outline.c @@ -32,7 +32,7 @@ pdf_load_outline_imp(pdf_document *doc, pdf_obj *dict) node->title = pdf_to_utf8(doc, obj); if ((obj = pdf_dict_gets(dict, "Dest"))) - node->dest = pdf_parse_link_dest(doc, obj); + node->dest = pdf_parse_link_dest(doc, FZ_LINK_GOTO, obj); else if ((obj = pdf_dict_gets(dict, "A"))) node->dest = pdf_parse_action(doc, obj); |