summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorJonathan Blandford <jrb@redhat.com>2001-11-01 17:23:03 +0000
committerJonathan Blandford <jrb@src.gnome.org>2001-11-01 17:23:03 +0000
commitb852358d0ac7e144909236fa5851ec89408b9867 (patch)
tree667ec83c536b48e46ed39544ff8fbaae7cc7b84f /gtk
parentd63b7cd693f9799f031bea3dfa2512d0f5634c6e (diff)
downloadgdk-pixbuf-b852358d0ac7e144909236fa5851ec89408b9867.tar.gz
Fix crash found by Matt Wilson.
Thu Nov 1 12:21:31 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Fix crash found by Matt Wilson.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtktreeview.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 65c060102..c443407d2 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -5835,6 +5835,7 @@ gtk_tree_view_focus_to_cursor (GtkTreeView *tree_view)
{
cursor_path = gtk_tree_path_new_root ();
gtk_tree_row_reference_free (tree_view->priv->cursor);
+ tree_view->priv->cursor = NULL;
if (tree_view->priv->selection->type == GTK_SELECTION_MULTIPLE)
gtk_tree_view_real_set_cursor (tree_view, cursor_path, FALSE);