]> Pileus Git - ~andy/gtk/commitdiff
Get the damn fix right, see my latest ChangeLog entry.
authorKristian Rietveld <kristian@src.gnome.org>
Mon, 11 Feb 2002 15:06:59 +0000 (15:06 +0000)
committerKristian Rietveld <kristian@src.gnome.org>
Mon, 11 Feb 2002 15:06:59 +0000 (15:06 +0000)
gtk/gtkliststore.c

index 1c9003790230a130699f4b86d6169aff80c25652..ab7eabce714ef9d6e989a448489d42b2355225c6 100644 (file)
@@ -1777,11 +1777,9 @@ gtk_list_store_sort_iter_changed (GtkListStore *list_store,
        cmp_a = (* func) (GTK_TREE_MODEL (list_store), iter, &tmp_iter, data);
     }
 
-  if (!list->next && cmp_a > 0)
-    new_location++;
-
   if ((!list->next) && (cmp_a > 0))
     {
+      new_location++;
       list->next = G_SLIST (iter->user_data);
       list_store->tail = list->next;
     }