diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2010-06-30 12:34:55 +0000 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2010-06-30 12:34:55 +0000 |
commit | 0a79c2e01455dfd7b0642fdf4d1a6fe499a41c7e (patch) | |
tree | 2a0cccb6c997eb819596021b4972b1140a5e962d /xps/xpsglyphs.c | |
parent | 956f9bfac6f6dc7f13fbfa707d392bc87b2bd33c (diff) | |
download | ghostpdl-0a79c2e01455dfd7b0642fdf4d1a6fe499a41c7e.tar.gz |
Use gx_effective_clip_path to get the current visible area instead of manually maintaining the bounds while parsing.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11466 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'xps/xpsglyphs.c')
-rw-r--r-- | xps/xpsglyphs.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/xps/xpsglyphs.c b/xps/xpsglyphs.c index f002abec2..6e03930f6 100644 --- a/xps/xpsglyphs.c +++ b/xps/xpsglyphs.c @@ -468,8 +468,6 @@ xps_parse_glyphs(xps_context_t *ctx, int is_sideways = 0; int bidi_level = 0; - gs_rect saved_bounds; - /* * Extract attributes and extended attributes. */ @@ -590,8 +588,7 @@ xps_parse_glyphs(xps_context_t *ctx, xps_parse_abbreviated_geometry(ctx, clip_att); if (clip_tag) xps_parse_path_geometry(ctx, dict, clip_tag, 0); - - xps_clip(ctx, &saved_bounds); + xps_clip(ctx); } font_size = atof(font_size_att); @@ -673,10 +670,5 @@ xps_parse_glyphs(xps_context_t *ctx, gs_grestore(ctx->pgs); - if (clip_att || clip_tag) - { - xps_restore_bounds(ctx, &saved_bounds); - } - return 0; } |