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)
This commit is contained in:
Matthias Clasen
2004-07-04 05:12:47 +00:00
committed by Matthias Clasen
parent e3fbe3c14f
commit b98e17c850
5 changed files with 26 additions and 1 deletions

View File

@ -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;
}