forked from AuroraMiddleware/gtk
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:
parent
858ba35873
commit
f23585b7bb
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user