diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2013-10-05 11:20:04 +0200 |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2013-10-05 16:56:07 +0200 |
commit | f4bfa940aa40a82a1080cdaf765da1d1615ccfb1 (patch) | |
tree | 438ef7966ad23f04fad5c765a1d66b8a34992e9a | |
parent | e2fe85137ecb59eb0d177682c552febc64cda643 (diff) |
cairo: Do not set an invalid matrix in drawImage()
https://bugs.freedesktop.org/show_bug.cgi?id=70085
-rw-r--r-- | poppler/CairoOutputDev.cc | 3 |
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) |