[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:
Florian Müllner 2010-07-02 15:36:40 +02:00
parent 6adb034cb7
commit 1e1c5e3ca1

View File

@ -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);
}
}