diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-12-12 19:33:07 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-12-12 19:34:59 +0000 |
commit | a526e86172239c4c45438d49be57c064f0373b4b (patch) | |
tree | e8813f67e2b017c78a7e28e3c208f16205fb85d5 /pdf/pdf_interpret.c | |
parent | 854465a9cf1e171e8f7c94ddf809e56facf4c63e (diff) | |
download | mupdf-a526e86172239c4c45438d49be57c064f0373b4b.tar.xz |
Fix use of text_bbox with pattern filled text.
Following on from the blend.ai.pdf disapparing text fix that went in
the other day, zeniko has pointed out that we should be using the
device space on entry to pdf_show_pattern too. Fixed here.
Many thanks.
Diffstat (limited to 'pdf/pdf_interpret.c')
-rw-r--r-- | pdf/pdf_interpret.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pdf/pdf_interpret.c b/pdf/pdf_interpret.c index ff0eb388..9a6f973a 100644 --- a/pdf/pdf_interpret.c +++ b/pdf/pdf_interpret.c @@ -619,7 +619,7 @@ pdf_flush_text(pdf_csi *csi) if (gstate->fill.pattern) { fz_clip_text(csi->dev, text, gstate->ctm, 0); - pdf_show_pattern(csi, gstate->fill.pattern, csi->text_bbox, PDF_FILL); + pdf_show_pattern(csi, gstate->fill.pattern, tb, PDF_FILL); fz_pop_clip(csi->dev); } break; @@ -648,7 +648,7 @@ pdf_flush_text(pdf_csi *csi) if (gstate->stroke.pattern) { fz_clip_stroke_text(csi->dev, text, gstate->stroke_state, gstate->ctm); - pdf_show_pattern(csi, gstate->stroke.pattern, csi->text_bbox, PDF_STROKE); + pdf_show_pattern(csi, gstate->stroke.pattern, tb, PDF_STROKE); fz_pop_clip(csi->dev); } break; |