summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-op-run.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2015-03-25 17:38:41 +0000
committerRobin Watts <robin.watts@artifex.com>2015-03-25 17:42:49 +0000
commitfd2ca50b85bd6aa2e2fe474dc1b9f6d5a6ffaa32 (patch)
treecb2c600e5977e7f42c130bc20f62a85ef502673d /source/pdf/pdf-op-run.c
parentd25428f4e7bfb5f857611e728084fe99d501740e (diff)
downloadmupdf-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.c1
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;