summaryrefslogtreecommitdiff
path: root/xps/xpspath.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2011-04-01 02:24:08 +0200
committerTor Andersson <tor.andersson@artifex.com>2011-04-01 02:24:08 +0200
commit7c6ae0b110d0a29558305878482023ad7e8a66dc (patch)
treed405a91f844a96051d11db5d80c21cec27361aae /xps/xpspath.c
parent9c9674b3081bfd433460be934e2a792390474367 (diff)
downloadmupdf-7c6ae0b110d0a29558305878482023ad7e8a66dc.tar.xz
xps: Respect PathGeometry.Transform attribute.
Diffstat (limited to 'xps/xpspath.c')
-rw-r--r--xps/xpspath.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/xps/xpspath.c b/xps/xpspath.c
index d442698d..dd0d2ef3 100644
--- a/xps/xpspath.c
+++ b/xps/xpspath.c
@@ -741,25 +741,20 @@ xps_parse_path_geometry(xps_context *ctx, xps_resource *dict, xps_item *root, in
xps_parse_render_transform(ctx, transform_att, &transform);
if (transform_tag)
xps_parse_matrix_transform(ctx, transform_tag, &transform);
- // TODO: apply matrix
- if (transform_att || transform_tag)
- fz_warn("ignoring PathGeometry.Transform attribute");
if (figures_att)
- {
xps_parse_abbreviated_geometry(ctx, figures_att);
- }
-
if (figures_tag)
- {
xps_parse_path_figure(ctx, figures_tag, stroking);
- }
for (node = xps_down(root); node; node = xps_next(node))
{
if (!strcmp(xps_tag(node), "PathFigure"))
xps_parse_path_figure(ctx, node, stroking);
}
+
+ if (transform_att || transform_tag)
+ fz_transformpath(ctx->path, transform);
}
static int