summaryrefslogtreecommitdiff
path: root/source/xps/xps-glyphs.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2015-10-05 16:51:32 +0200
committerTor Andersson <tor.andersson@artifex.com>2015-10-06 11:20:30 +0200
commitbff6387d72f873f26f73b78d5f75a40f708197c3 (patch)
treefb8c120f26e0e5758e1b1f507d9e9a48117eed06 /source/xps/xps-glyphs.c
parent56c0babe3bd6941382072a5b8209236d801a4201 (diff)
downloadmupdf-bff6387d72f873f26f73b78d5f75a40f708197c3.tar.xz
xps: Simplify transform attribute/tag parsing.
Diffstat (limited to 'source/xps/xps-glyphs.c')
-rw-r--r--source/xps/xps-glyphs.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/source/xps/xps-glyphs.c b/source/xps/xps-glyphs.c
index e15eb726..eea7caa5 100644
--- a/source/xps/xps-glyphs.c
+++ b/source/xps/xps-glyphs.c
@@ -423,7 +423,7 @@ xps_parse_glyphs(fz_context *ctx, xps_document *doc, const fz_matrix *ctm,
fz_text *text;
fz_rect area;
- fz_matrix local_ctm = *ctm;
+ fz_matrix local_ctm;
/*
* Extract attributes and extended attributes.
@@ -563,15 +563,7 @@ xps_parse_glyphs(fz_context *ctx, xps_document *doc, const fz_matrix *ctm,
* Set up graphics state.
*/
- if (transform_att || transform_tag)
- {
- fz_matrix transform;
- if (transform_att)
- xps_parse_render_transform(ctx, doc, transform_att, &transform);
- if (transform_tag)
- xps_parse_matrix_transform(ctx, doc, transform_tag, &transform);
- fz_concat(&local_ctm, &transform, &local_ctm);
- }
+ xps_parse_transform(ctx, doc, transform_att, transform_tag, &local_ctm, ctm);
if (clip_att || clip_tag)
xps_clip(ctx, doc, &local_ctm, dict, clip_att, clip_tag);