summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-outline.c
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2013-08-24 23:07:06 +0200
committerSebastian Rasmussen <sebras@gmail.com>2013-08-24 23:38:02 +0200
commit0bfe9501ebc2e2a2329a5435100ef189b6166219 (patch)
treebd9ea782ecf2722ce9c51979810778bf48d7107e /source/pdf/pdf-outline.c
parent8ac325e2550a509995bbad5a28c09c4a3ded0dc1 (diff)
downloadmupdf-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.c2
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);