treeview: Fix crash when scrolling to end

This broke in a4630d0e7b

https://bugzilla.gnome.org/show_bug.cgi?id=665741
This commit is contained in:
Benjamin Otte 2011-12-07 20:09:16 +01:00
parent 8f4f7faa11
commit 807a449f29

View File

@ -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;