[gtk+/gtk-3-20] treeview: fix an off-by-one error



commit 3b6eb705399bff156bafeed20b68e3449c0d7587
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jun 5 22:20:38 2016 -0400

    treeview: fix an off-by-one error
    
    gtk_tree_view_get_path_at_pos() mistakenly identifies the first
    pixel of all but the first column in a tree view as belonging to
    the previous column.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=708148

 gtk/gtktreeview.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index a72750c..14fb470 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -13568,7 +13568,7 @@ gtk_tree_view_get_path_at_pos (GtkTreeView        *tree_view,
 
          last_column = tmp_column;
           width = gtk_tree_view_column_get_width (tmp_column);
-         if (remaining_x <= width)
+         if (remaining_x < width)
            {
               found = TRUE;
 


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