[gtk+] [iconview] Fix segfault when using rubberband selection



commit 1e1c5e3ca18b91e40fe08991d2b3bfb08410afd5
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Jul 2 15:36:40 2010 +0200

    [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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c
index 61a3b0c..d66865e 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);
         }
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]