summaryrefslogtreecommitdiff
path: root/gtk/gtktreeview.c
diff options
context:
space:
mode:
authorKristian Rietveld <kris@imendio.com>2008-05-28 14:47:50 +0000
committerKristian Rietveld <kristian@src.gnome.org>2008-05-28 14:47:50 +0000
commite7df0579c298daf1eb3515379fc1fb5a03174ce6 (patch)
treebc0d4c2c412ff230733cfb57af4a08f78a46c1a0 /gtk/gtktreeview.c
parent53366c1c0e777fc63812ed08ac4f8e26c187063e (diff)
downloadgtk+-e7df0579c298daf1eb3515379fc1fb5a03174ce6.tar.gz
Bug 449625 - crash in gtk_tree_view_real_move_cursor at gtktreeview.c:9641
2008-05-28 Kristian Rietveld <kris@imendio.com> Bug 449625 - crash in gtk_tree_view_real_move_cursor at gtktreeview.c:9641 * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): cursor_offset *must* be larger than background height of the cursor node, not just equal otherwise there is no guarantee there is a next node. svn path=/trunk/; revision=20219
Diffstat (limited to 'gtk/gtktreeview.c')
-rw-r--r--gtk/gtktreeview.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index f4b4705aab..455a4fa3a7 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -9748,7 +9748,7 @@ gtk_tree_view_move_cursor_page_up_down (GtkTreeView *tree_view,
_gtk_rbtree_find_offset (tree_view->priv->tree, y,
&cursor_tree, &cursor_node);
- if (tree_view->priv->cursor_offset >= BACKGROUND_HEIGHT (cursor_node))
+ if (tree_view->priv->cursor_offset > BACKGROUND_HEIGHT (cursor_node))
{
_gtk_rbtree_next_full (cursor_tree, cursor_node,
&cursor_tree, &cursor_node);