[gnome-builder/gnome-builder-3-38] core: fix insertion sort of IdeObject children



commit 795e94d3b614dfbac3e5ede5604e3458ce8619a9
Author: Christian Hergert <chergert redhat com>
Date:   Sun Oct 18 11:34:00 2020 -0700

    core: fix insertion sort of IdeObject children

 src/libide/core/ide-object.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libide/core/ide-object.c b/src/libide/core/ide-object.c
index 61cfedd26..abb10ff63 100644
--- a/src/libide/core/ide-object.c
+++ b/src/libide/core/ide-object.c
@@ -972,7 +972,7 @@ ide_object_insert_sorted (IdeObject        *self,
 
       if (func (child, other, user_data) <= 0)
         {
-          ide_object_insert_after (self, other, child);
+          ide_object_insert_before (self, other, child);
           goto unlock;
         }
     }


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