Trivial: Move a cairo_save call

Move the cairo_save call to where it is needed.
This commit is contained in:
Matthias Clasen 2015-09-28 15:02:36 -04:00
parent 5bf47338e8
commit eaddbb2dca

View File

@ -3787,8 +3787,6 @@ gtk_container_propagate_draw (GtkContainer *container,
if (!gtk_container_should_propagate_draw (container, child, cr)) if (!gtk_container_should_propagate_draw (container, child, cr))
return; return;
cairo_save (cr);
/* translate coordinates. Ugly business, that. */ /* translate coordinates. Ugly business, that. */
if (!_gtk_widget_get_has_window (GTK_WIDGET (container))) if (!_gtk_widget_get_has_window (GTK_WIDGET (container)))
{ {
@ -3825,6 +3823,7 @@ gtk_container_propagate_draw (GtkContainer *container,
y += allocation.y; y += allocation.y;
} }
cairo_save (cr);
cairo_translate (cr, x, y); cairo_translate (cr, x, y);
_gtk_widget_draw (child, cr); _gtk_widget_draw (child, cr);