From 807a449f293baa77ad8bd58150eac91680270325 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 7 Dec 2011 20:09:16 +0100 Subject: [PATCH] treeview: Fix crash when scrolling to end This broke in a4630d0e7b233479825b059e0df0e6d65b0e6734 https://bugzilla.gnome.org/show_bug.cgi?id=665741 --- gtk/gtktreeview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index 4ea20bb848..3bf9753d26 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -10545,7 +10545,7 @@ gtk_tree_view_move_cursor_start_end (GtkTreeView *tree_view, do { - while (cursor_node && !_gtk_rbtree_is_nil (cursor_node)) + while (cursor_node && !_gtk_rbtree_is_nil (cursor_node->right)) cursor_node = cursor_node->right; if (cursor_node->children == NULL) break;