]> Pileus Git - ~andy/gtk/commitdiff
Don't crash if somebody tries to move a node after itself in a list of
authorMatthias Clasen <maclas@gmx.de>
Sun, 4 Jul 2004 05:12:47 +0000 (05:12 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Sun, 4 Jul 2004 05:12:47 +0000 (05:12 +0000)
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)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtktreestore.c

index 901dbaba4808b3d8ea66fe8890f3858bd12db37b..d88bba107418ded1059b5f9d778aad75d68c2ae8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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)
+
 Sat Jul  3 23:43:23 2004  Matthias Clasen  <maclas@gmx.de>
 
        * docs/faq/gtk-faq.sgml: 
index 901dbaba4808b3d8ea66fe8890f3858bd12db37b..d88bba107418ded1059b5f9d778aad75d68c2ae8 100644 (file)
@@ -1,3 +1,9 @@
+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)
+
 Sat Jul  3 23:43:23 2004  Matthias Clasen  <maclas@gmx.de>
 
        * docs/faq/gtk-faq.sgml: 
index 901dbaba4808b3d8ea66fe8890f3858bd12db37b..d88bba107418ded1059b5f9d778aad75d68c2ae8 100644 (file)
@@ -1,3 +1,9 @@
+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)
+
 Sat Jul  3 23:43:23 2004  Matthias Clasen  <maclas@gmx.de>
 
        * docs/faq/gtk-faq.sgml: 
index 901dbaba4808b3d8ea66fe8890f3858bd12db37b..d88bba107418ded1059b5f9d778aad75d68c2ae8 100644 (file)
@@ -1,3 +1,9 @@
+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)
+
 Sat Jul  3 23:43:23 2004  Matthias Clasen  <maclas@gmx.de>
 
        * docs/faq/gtk-faq.sgml: 
index a66d53917e12f8da3f2de43e3de02f9d55f7aff2..d59c97b58a64da5ed7555d7285338798e0ed260d 100644 (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;
     }