Commit 1e1c5e3c authored by Florian Müllner's avatar Florian Müllner
Browse files

[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
parent 6adb034c
......@@ -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);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment