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
This commit is contained in:
committed by
Kristian Rietveld
parent
53366c1c0e
commit
e7df0579c2
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user