diff options
author | Matthias Clasen <mclasen@redhat.com> | 2016-06-05 22:20:38 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2016-06-05 22:20:38 -0400 |
commit | c4224bf9d0483ebc029e3567ba5e3c9a61e0eb28 (patch) | |
tree | b1e558172d32b71487ec8a5b6fbe0d20b6e1bdc5 | |
parent | b97c490b8761a165c995b169e4f29e7fd572e288 (diff) | |
download | gtk+-c4224bf9d0483ebc029e3567ba5e3c9a61e0eb28.tar.gz |
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
-rw-r--r-- | gtk/gtktreeview.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index 1ac81ca63c..e51aae45ae 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -13564,7 +13564,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; |