Avoid extending implicit paint size due to empty regions not working well with gdk_rectangle_union on clipbox

This commit is contained in:
Alexander Larsson 2009-01-20 21:11:30 +01:00 committed by Alexander Larsson
parent c31ef39d76
commit 3c5c7f4b4d

View File

@ -1962,8 +1962,11 @@ gdk_window_begin_implicit_paint (GdkWindow *window, GdkRectangle *rect)
{
move = l->data;
gdk_region_get_clipbox (move->region, &clipbox);
gdk_rectangle_union (&r, &clipbox, &r);
if (!gdk_region_empty (move->region))
{
gdk_region_get_clipbox (move->region, &clipbox);
gdk_rectangle_union (&r, &clipbox, &r);
}
}
paint = g_new (GdkWindowPaint, 1);