Commit 100488ec authored by Adrian Johnson's avatar Adrian Johnson
Browse files

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.
parent 69df13c4
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment