summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2012-02-16 22:22:15 +1030
committerAdrian Johnson <ajohnson@redneon.com>2012-02-19 21:40:03 +1030
commitaaae8996766f259dcc329755c7cccde7c916c1fb (patch)
tree28f5ee97f4b346fa136096768fabcc34a8663b3b
parentfff439f25d9bbd199db5646deccd80733138898e (diff)
cairo: set mask matrix before drawing an image with a mask
Bug 40828
-rw-r--r--poppler/CairoOutputDev.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/poppler/CairoOutputDev.cc b/poppler/CairoOutputDev.cc
index 36d58c49..5dc8639e 100644
--- a/poppler/CairoOutputDev.cc
+++ b/poppler/CairoOutputDev.cc
@@ -2811,6 +2811,7 @@ void CairoOutputDev::drawImage(GfxState *state, Object *ref, Stream *str,
if (maskPattern) {
if (!printing)
cairo_clip (cairo);
+ cairo_set_matrix (cairo, &mask_matrix);
cairo_mask (cairo, maskPattern);
} else {
if (printing)