summaryrefslogtreecommitdiff
path: root/pdf/pdf_interpret.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-12-12 19:33:07 +0000
committerRobin Watts <robin.watts@artifex.com>2012-12-12 19:34:59 +0000
commita526e86172239c4c45438d49be57c064f0373b4b (patch)
treee8813f67e2b017c78a7e28e3c208f16205fb85d5 /pdf/pdf_interpret.c
parent854465a9cf1e171e8f7c94ddf809e56facf4c63e (diff)
downloadmupdf-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.c4
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;