From 062aafa0c5de078804bed7ed3c844783abd89138 Mon Sep 17 00:00:00 2001 From: Adrian Johnson Date: Thu, 16 Feb 2012 22:22:15 +1030 Subject: [PATCH] cairo: set mask matrix before drawing an image with a mask Bug 40828 --- poppler/CairoOutputDev.cc | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/poppler/CairoOutputDev.cc b/poppler/CairoOutputDev.cc index dab1e47..4c79505 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) -- 1.7.5.4