From 873f029d13470a29208369a9a36423c594622839 Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Thu, 15 Mar 2012 10:12:59 +0000 Subject: [PATCH] elm genlist: Fixed elm_genlist_item_index_get(). Patch by Chanwook Jung But this will never be correct without performance issue. On Thu, Mar 15, 2012 at 4:43 PM, chanwook jung wrote: > Dear all, > > I made the patch to fix index bug. > > Thanks, > Joey SVN revision: 69366 --- legacy/elementary/src/lib/elm_genlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/elementary/src/lib/elm_genlist.c b/legacy/elementary/src/lib/elm_genlist.c index 6a49af9db0..55d6adeb8d 100644 --- a/legacy/elementary/src/lib/elm_genlist.c +++ b/legacy/elementary/src/lib/elm_genlist.c @@ -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; }