From 7c99a90665449db7f62e7854b94f8076720c39d6 Mon Sep 17 00:00:00 2001 From: Adrian Johnson Date: Sun, 15 Jan 2012 23:52:28 +1030 Subject: [PATCH] cairo: restore temporary clip used in CairoOutputDev::fill when painting a mask The clip is only used to clip the paint to the fill path so it should be moved inside the save/restore. --- poppler/CairoOutputDev.cc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/poppler/CairoOutputDev.cc b/poppler/CairoOutputDev.cc index e2ecfda..db7e654 100644 --- a/poppler/CairoOutputDev.cc +++ b/poppler/CairoOutputDev.cc @@ -729,8 +729,8 @@ void CairoOutputDev::fill(GfxState *state) { LOG(printf ("fill\n")); //XXX: how do we get the path if (mask) { - cairo_clip (cairo); cairo_save (cairo); + cairo_clip (cairo); cairo_set_matrix (cairo, &mask_matrix); cairo_mask (cairo, mask); cairo_restore (cairo); -- 1.7.5.4