summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2013-10-05 11:20:04 +0200
committerCarlos Garcia Campos <carlosgc@gnome.org>2013-10-05 16:56:07 +0200
commitf4bfa940aa40a82a1080cdaf765da1d1615ccfb1 (patch)
tree438ef7966ad23f04fad5c765a1d66b8a34992e9a
parente2fe85137ecb59eb0d177682c552febc64cda643 (diff)
cairo: Do not set an invalid matrix in drawImage()
https://bugs.freedesktop.org/show_bug.cgi?id=70085
-rw-r--r--poppler/CairoOutputDev.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/poppler/CairoOutputDev.cc b/poppler/CairoOutputDev.cc
index 26760c86..77bd2458 100644
--- a/poppler/CairoOutputDev.cc
+++ b/poppler/CairoOutputDev.cc
@@ -2938,7 +2938,8 @@ void CairoOutputDev::drawImage(GfxState *state, Object *ref, Stream *str,
if (maskPattern) {
if (!printing)
cairo_clip (cairo);
- cairo_set_matrix (cairo, &mask_matrix);
+ if (mask)
+ cairo_set_matrix (cairo, &mask_matrix);
cairo_mask (cairo, maskPattern);
} else {
if (printing)