gtk: bail out in render_background_internal() if the extents are <= 0

otherwise we run into scaling the cairo_t into a borken state that's
not fixable by cairo_restore().
This commit is contained in:
Michael Natterer 2011-02-06 11:13:42 +01:00
parent 858ba35873
commit f23585b7bb

View File

@ -1490,6 +1490,9 @@ render_background_internal (GtkThemingEngine *engine,
gint radius, border_width;
GtkBorderStyle border_style;
if (width <= 0 || height <= 0)
return;
flags = gtk_theming_engine_get_state (engine);
cairo_save (cr);