forked from AuroraMiddleware/gtk
[iconview] Fix segfault when using rubberband selection
When iterating over the cairo region's rectangles, do not decrement the counter twice ... https://bugzilla.gnome.org/show_bug.cgi?id=623389
This commit is contained in:
parent
6adb034cb7
commit
1e1c5e3ca1
@ -1667,7 +1667,7 @@ gtk_icon_view_expose (GtkWidget *widget,
|
||||
|
||||
while (n_rectangles--)
|
||||
{
|
||||
cairo_region_get_rectangle (expose->region, n_rectangles--, &rectangle);
|
||||
cairo_region_get_rectangle (expose->region, n_rectangles, &rectangle);
|
||||
gtk_icon_view_paint_rubberband (icon_view, cr, &rectangle);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user