gtkcssimagebuiltin: Save/restore around cairo_clip

This was previously causing trouble in checkbuttons where the check node
didn't have an icon shadow set, e.g. in Raleigh.
This commit is contained in:
Timm Bäder 2016-04-19 15:20:14 +02:00
parent d1b07bc386
commit 36fead28e0

View File

@ -95,6 +95,7 @@ gtk_css_image_builtin_draw_check (GtkCssImage *image,
{
if (checked)
{
cairo_save (cr);
cairo_translate (cr,
x + pad, y + pad);
@ -123,6 +124,7 @@ gtk_css_image_builtin_draw_check (GtkCssImage *image,
7.0, 0.0);
cairo_fill (cr);
cairo_restore (cr);
}
}
}