elm/genlist: use correct type of list when iterating

itb-items is Eina_List, not Eina_Inlist. this crashes due to wrong type
use

ref D6720
fix T7246

Differential Revision: https://phab.enlightenment.org/D6736
This commit is contained in:
Mike Blumenkrantz 2018-08-02 16:42:56 -04:00 committed by Marcel Hollerbach
parent 0e462d5f5a
commit ab1fd96363
1 changed files with 2 additions and 1 deletions

View File

@ -4362,12 +4362,13 @@ _update_block_registration(Item_Block *itb, Elm_Gen_Item *element)
{
Elm_Gen_Item *it = NULL;
Eina_List *order = NULL;
const Eina_List *l;
if (!itb->realized) return;
efl_ui_focus_manager_calc_register_logical(itb->sd->obj, EO_OBJ(element), itb->adapter, NULL);
EINA_INLIST_FOREACH(itb->items, it)
EINA_LIST_FOREACH(itb->items, l, it)
{
order = eina_list_append(order, EO_OBJ(it));
}