diff --git a/poppler/CairoOutputDev.cc b/poppler/CairoOutputDev.cc index fae0136..1bc897d 100644 --- a/poppler/CairoOutputDev.cc +++ b/poppler/CairoOutputDev.cc @@ -2779,10 +2779,7 @@ void CairoOutputDev::drawImage(GfxState *state, Object *ref, Stream *str, cairo_save (cairo); cairo_set_source (cairo, pattern); - if (printing) - cairo_rectangle (cairo, 0., 0., width, height); - else - cairo_rectangle (cairo, 0., 0., 1., 1.); + cairo_rectangle (cairo, 0., 0., 1., 1.); if (maskPattern) { cairo_clip (cairo); cairo_mask (cairo, maskPattern); @@ -2796,10 +2793,7 @@ void CairoOutputDev::drawImage(GfxState *state, Object *ref, Stream *str, if (cairo_shape) { cairo_save (cairo_shape); cairo_set_source (cairo_shape, pattern); - if (printing) - cairo_rectangle (cairo_shape, 0., 0., width, height); - else - cairo_rectangle (cairo_shape, 0., 0., 1., 1.); + cairo_rectangle (cairo_shape, 0., 0., 1., 1.); cairo_fill (cairo_shape); cairo_restore (cairo_shape); }