mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-29 06:51:10 +00:00
Avoid extending implicit paint size due to empty regions not working well with gdk_rectangle_union on clipbox
This commit is contained in:
parent
c31ef39d76
commit
3c5c7f4b4d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user