summaryrefslogtreecommitdiff
path: root/source/xps/xps-path.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-path.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-path.c')
-rw-r--r--source/xps/xps-path.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/source/xps/xps-path.c b/source/xps/xps-path.c
index 55d88fce..85910905 100644
--- a/source/xps/xps-path.c
+++ b/source/xps/xps-path.c
@@ -810,7 +810,6 @@ xps_parse_path(fz_context *ctx, xps_document *doc, const fz_matrix *ctm, char *b
char *stroke_line_join_att;
char *stroke_miter_limit_att;
char *stroke_thickness_att;
- char *navigate_uri_att;
fz_stroke_state *stroke = NULL;
float samples[FZ_MAX_COLORS];
@@ -842,7 +841,6 @@ xps_parse_path(fz_context *ctx, xps_document *doc, const fz_matrix *ctm, char *b
stroke_line_join_att = fz_xml_att(root, "StrokeLineJoin");
stroke_miter_limit_att = fz_xml_att(root, "StrokeMiterLimit");
stroke_thickness_att = fz_xml_att(root, "StrokeThickness");
- navigate_uri_att = fz_xml_att(root, "FixedPage.NavigateUri");
for (node = fz_xml_down(root); node; node = fz_xml_next(node))
{
@@ -991,9 +989,6 @@ xps_parse_path(fz_context *ctx, xps_document *doc, const fz_matrix *ctm, char *b
else
fz_bound_path(ctx, path, NULL, &local_ctm, &area);
- if (navigate_uri_att)
- xps_add_link(ctx, doc, &area, base_uri, navigate_uri_att);
-
xps_begin_opacity(ctx, doc, &local_ctm, &area, opacity_mask_uri, dict, opacity_att, opacity_mask_tag);
if (fill_att)