diff options
author | Robin Watts <robin.watts@artifex.com> | 2015-03-25 17:38:41 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2015-03-25 17:42:49 +0000 |
commit | fd2ca50b85bd6aa2e2fe474dc1b9f6d5a6ffaa32 (patch) | |
tree | cb2c600e5977e7f42c130bc20f62a85ef502673d /source/pdf/pdf-op-run.c | |
parent | d25428f4e7bfb5f857611e728084fe99d501740e (diff) | |
download | mupdf-fd2ca50b85bd6aa2e2fe474dc1b9f6d5a6ffaa32.tar.xz |
Bug 695885: Avoid too many pop clips.
When making a new pdf_run_processor to handle type 3 glyph contents,
we can inherit the current gstate. Do NOT inherit the current clip
depth, as otherwise we pop too many on exit.
Diffstat (limited to 'source/pdf/pdf-op-run.c')
-rw-r--r-- | source/pdf/pdf-op-run.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/pdf/pdf-op-run.c b/source/pdf/pdf-op-run.c index e153dbd1..bec85959 100644 --- a/source/pdf/pdf-op-run.c +++ b/source/pdf/pdf-op-run.c @@ -2115,6 +2115,7 @@ pdf_new_run_processor(fz_context *ctx, fz_device *dev, const fz_matrix *ctm, con if (gstate) { pdf_copy_gstate(ctx, &proc->gstate[0], gstate); + proc->gstate[0].clip_depth = 0; proc->gstate[0].ctm = *ctm; } proc->gtop = 0; |