forked from enlightenment/efl
elm genlist: Fixed elm_genlist_item_index_get(). Patch by Chanwook
Jung <jchanwook@gmail.com> But this will never be correct without performance issue. On Thu, Mar 15, 2012 at 4:43 PM, chanwook jung <jchanwook@gmail.com> wrote: > Dear all, > > I made the patch to fix index bug. > > Thanks, > Joey SVN revision: 69366
This commit is contained in:
parent
93257dd84a
commit
873f029d13
|
@ -5183,7 +5183,7 @@ elm_genlist_item_index_get(const Elm_Object_Item *it)
|
||||||
Elm_Gen_Item *_it = (Elm_Gen_Item *)it;
|
Elm_Gen_Item *_it = (Elm_Gen_Item *)it;
|
||||||
|
|
||||||
if (_it->item->block)
|
if (_it->item->block)
|
||||||
return _it->position + _it->item->block->position;
|
return _it->position + (_it->item->block->position * _it->wd->max_items_per_block);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue