jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=76b5749ea00b1009a5a9621b76604e4883e0e6e2

commit 76b5749ea00b1009a5a9621b76604e4883e0e6e2
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Mon Mar 20 22:24:41 2017 +0900

    genlist: Fix another issue with insert sorted
    
    Fixes T5274
    
    @fix
---
 src/lib/elementary/elm_genlist.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/lib/elementary/elm_genlist.c b/src/lib/elementary/elm_genlist.c
index ade4a3f..6c36251 100644
--- a/src/lib/elementary/elm_genlist.c
+++ b/src/lib/elementary/elm_genlist.c
@@ -6500,9 +6500,10 @@ _elm_genlist_item_sorted_insert(Eo *obj, 
Elm_Genlist_Data *sd, const Elm_Genlist
                {
                   it->parent->item->items = eina_list_append_relative_list
                       (it->parent->item->items, eo_it, l);
-                  if (rel->item->items && rel->item->expanded)
+                  if (rel->item->items)
                     {
-                       eo_rel = eina_list_last_data_get(rel->item->items);
+                       Eina_List *ll = _list_last_recursive(rel->item->items);
+                       eo_rel = ll->data;
                        rel = efl_data_scope_get(eo_rel, 
ELM_GENLIST_ITEM_CLASS);
                     }
                   sd->items = eina_inlist_append_relative

-- 


Reply via email to