diff options
-rw-r--r-- | pdf/pdf_interpret.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/pdf/pdf_interpret.c b/pdf/pdf_interpret.c index 854de300..c01e0e32 100644 --- a/pdf/pdf_interpret.c +++ b/pdf/pdf_interpret.c @@ -590,14 +590,6 @@ pdf_flush_text(pdf_csi *csi) if (doinvisible) fz_ignore_text(csi->dev, text, gstate->ctm); - if (doclip) - { - if (csi->accumulate < 2) - gstate->clip_depth++; - fz_clip_text(csi->dev, text, gstate->ctm, csi->accumulate); - csi->accumulate = 2; - } - if (dofill) { switch (gstate->fill.kind) @@ -656,6 +648,14 @@ pdf_flush_text(pdf_csi *csi) } } + if (doclip) + { + if (csi->accumulate < 2) + gstate->clip_depth++; + fz_clip_text(csi->dev, text, gstate->ctm, csi->accumulate); + csi->accumulate = 2; + } + pdf_end_group(csi); } fz_catch(ctx) |