diff options
author | Robin Watts <robin.watts@artifex.com> | 2011-11-15 15:23:25 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2011-11-15 15:24:57 +0000 |
commit | 54d7093e80e419b8aa18ffe33a4a3ff4fda25140 (patch) | |
tree | 31532fd6256ac3323a766d6c4b2fa104e3cc4554 /pdf | |
parent | fd6def85f22b598d4c278e76138ab7dccbb84c36 (diff) | |
download | mupdf-54d7093e80e419b8aa18ffe33a4a3ff4fda25140.tar.xz |
Fix clipping error.
When reverting the clip path handling, I made a mistake. We need to
set up the clip before starting any local group to ensure correct
nesting.
Diffstat (limited to 'pdf')
-rw-r--r-- | pdf/pdf_interpret.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pdf/pdf_interpret.c b/pdf/pdf_interpret.c index 4f26f04a..9b2a788b 100644 --- a/pdf/pdf_interpret.c +++ b/pdf/pdf_interpret.c @@ -263,15 +263,15 @@ pdf_show_path(pdf_csi *csi, int doclose, int dofill, int dostroke, int even_odd) else bbox = fz_bound_path(path, NULL, gstate->ctm); - if (dofill || dostroke) - pdf_begin_group(csi, bbox); - if (csi->clip) { gstate->clip_depth++; fz_clip_path(csi->dev, path, NULL, csi->clip_even_odd, gstate->ctm); } + if (dofill || dostroke) + pdf_begin_group(csi, bbox); + if (dofill) { switch (gstate->fill.kind) |