61012: GtkTreeView segfaults on listsort with 0 nodes



hi

If the tree view has 0 rows a click on the column header for sorting
will give a segfault.

here is a patch:

--- gtktreestore2.c	Sun Sep 23 19:33:52 2001
+++ gtktreestore.c	Fri Sep 21 22:51:53 2001
@@ -1658,8 +1658,6 @@
   GtkTreePath *path;
 
   node = parent->children;
-  if (node == NULL)
-	return;
   if (node->next == NULL)
     return;
 

please commit this.

have a nice day
detlef





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]