From 1e1c5e3ca18b91e40fe08991d2b3bfb08410afd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 2 Jul 2010 15:36:40 +0200 Subject: [PATCH] [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 --- gtk/gtkiconview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c index 61a3b0c433..d66865e228 100644 --- a/gtk/gtkiconview.c +++ b/gtk/gtkiconview.c @@ -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); } }