diff options
author | Robin Watts <robin.watts@artifex.com> | 2011-12-28 14:09:26 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2011-12-28 14:25:45 +0000 |
commit | d442ada2f85d91077ef8cc20d43a48d832037635 (patch) | |
tree | a086095579001390c82a70ebd44498776069a6f2 /xps | |
parent | 0d70079719b89aae1e5342d098389ef04bf313bc (diff) | |
download | mupdf-d442ada2f85d91077ef8cc20d43a48d832037635.tar.xz |
Outline/link destination tweaks.
Move 'kind' into the fz_link_dest structure (as this makes more sense).
Put an fz_link_dest rather than just a page number into the outlines
structure.
Correct parsing of actions and dests from pdf outlines.
Diffstat (limited to 'xps')
-rw-r--r-- | xps/xps_outline.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xps/xps_outline.c b/xps/xps_outline.c index 6252a6c1..30357491 100644 --- a/xps/xps_outline.c +++ b/xps/xps_outline.c @@ -33,7 +33,9 @@ xps_parse_document_outline(xps_document *doc, xml_element *root) entry = fz_malloc_struct(doc->ctx, fz_outline); entry->title = fz_strdup(doc->ctx, description); - entry->page = xps_find_link_target(doc, target); + entry->dest.kind = FZ_LINK_GOTO; + entry->dest.ld.gotor.flags = 0; + entry->dest.ld.gotor.page = xps_find_link_target(doc, target); entry->down = NULL; entry->next = NULL; |