summaryrefslogtreecommitdiff
path: root/source/xps/xps-tile.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2015-10-06 10:47:49 +0200
committerTor Andersson <tor.andersson@artifex.com>2015-10-06 11:20:30 +0200
commit6ffd32a570ab8a6f03737d0342667bee4d947985 (patch)
treea66134331d544812ba3c3b2b2c28e253e46f5a87 /source/xps/xps-tile.c
parent233baeea8e933c010c2270481b6a49ccc00454ca (diff)
downloadmupdf-6ffd32a570ab8a6f03737d0342667bee4d947985.tar.xz
xps: Add separate link parsing step.
Don't rely on having to run the page once with an identity transform before being able to load the links.
Diffstat (limited to 'source/xps/xps-tile.c')
-rw-r--r--source/xps/xps-tile.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/source/xps/xps-tile.c b/source/xps/xps-tile.c
index 3921d1ce..6cecd9c0 100644
--- a/source/xps/xps-tile.c
+++ b/source/xps/xps-tile.c
@@ -256,7 +256,6 @@ xps_parse_canvas(fz_context *ctx, xps_document *doc, const fz_matrix *ctm, const
char *clip_att;
char *opacity_att;
char *opacity_mask_att;
- char *navigate_uri_att;
fz_xml *transform_tag = NULL;
fz_xml *clip_tag = NULL;
@@ -268,7 +267,6 @@ xps_parse_canvas(fz_context *ctx, xps_document *doc, const fz_matrix *ctm, const
clip_att = fz_xml_att(root, "Clip");
opacity_att = fz_xml_att(root, "Opacity");
opacity_mask_att = fz_xml_att(root, "OpacityMask");
- navigate_uri_att = fz_xml_att(root, "FixedPage.NavigateUri");
for (node = fz_xml_down(root); node; node = fz_xml_next(node))
{
@@ -304,9 +302,6 @@ xps_parse_canvas(fz_context *ctx, xps_document *doc, const fz_matrix *ctm, const
xps_parse_transform(ctx, doc, transform_att, transform_tag, &local_ctm, ctm);
- if (navigate_uri_att)
- xps_add_link(ctx, doc, area, base_uri, navigate_uri_att);
-
if (clip_att || clip_tag)
xps_clip(ctx, doc, &local_ctm, dict, clip_att, clip_tag);
@@ -379,5 +374,4 @@ xps_run_page(fz_context *ctx, xps_page *page, fz_device *dev, const fz_matrix *c
xps_parse_fixed_page(ctx, doc, &page_ctm, page);
doc->cookie = NULL;
doc->dev = NULL;
- page->fix->links_resolved = 1;
}