diff options
-rw-r--r-- | ChangeLog | 10 | ||||
-rw-r--r-- | gtk/gtktreeview.c | 2 |
2 files changed, 11 insertions, 1 deletions
@@ -1,3 +1,13 @@ +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. + 2008-05-28 Michael Natterer <mitch@imendio.com> * gtk/gtktestutils.c: don't include <gdk/gdktestutils.h>. 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); |