From c34ece2d3601122da5b60b9aeec2b7650f1f8d6f Mon Sep 17 00:00:00 2001 From: cedric Date: Fri, 29 Jul 2011 16:07:10 +0000 Subject: [PATCH] elementary: fix genlist sorted insert to not loose track of subitem. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@61901 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/elm_genlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index 9ad7a7f..4f5e160 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -3514,7 +3514,7 @@ elm_genlist_item_direct_sorted_insert(Evas_Object *obj, else rel = it->parent; - if (cmp_result > 0) + if (cmp_result >= 0) { it->parent->items = eina_list_prepend_relative_list(it->parent->items, it, l); wd->items = eina_inlist_prepend_relative(wd->items, EINA_INLIST_GET(it), EINA_INLIST_GET(rel)); -- 2.7.4