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:
Daniel Juyung Seo 2012-03-15 10:12:59 +00:00
parent 93257dd84a
commit 873f029d13
1 changed files with 1 additions and 1 deletions

View File

@ -5183,7 +5183,7 @@ elm_genlist_item_index_get(const Elm_Object_Item *it)
Elm_Gen_Item *_it = (Elm_Gen_Item *)it;
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;
}