diff options
author | Matthias Clasen <maclas@gmx.de> | 2004-07-04 05:12:47 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-07-04 05:12:47 +0000 |
commit | b98e17c85088757547a38268818597eaf03028ef (patch) | |
tree | 3695faac902260cf68dc903a92e470da4c800f6c /gtk/gtktreestore.c | |
parent | e3fbe3c14f57b642e163ba1bf5e509b2154e2cdc (diff) | |
download | gtk+-b98e17c85088757547a38268818597eaf03028ef.tar.gz |
Don't crash if somebody tries to move a node after itself in a list of
Sun Jul 4 01:11:07 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreestore.c (gtk_tree_store_move): Don't crash if
somebody tries to move a node after itself in a list of
length 1. (#145291, Sampo Nurmentaus)
Diffstat (limited to 'gtk/gtktreestore.c')
-rw-r--r-- | gtk/gtktreestore.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtktreestore.c b/gtk/gtktreestore.c index a66d53917e..d59c97b58a 100644 --- a/gtk/gtktreestore.c +++ b/gtk/gtktreestore.c @@ -2317,7 +2317,8 @@ gtk_tree_store_move (GtkTreeStore *tree_store, parent->children = node; node->next = tmp; - tmp->prev = node; + if (tmp) + tmp->prev = node; handle_b = FALSE; } |