[elm] Fix bad gengrid porting on a function.

SVN revision: 74149
This commit is contained in:
Gustavo Lima Chaves 2012-07-18 21:03:46 +00:00
parent 584c53c1be
commit 40c3ef3b46
1 changed files with 7 additions and 0 deletions

View File

@ -2753,6 +2753,13 @@ elm_gengrid_item_update(Elm_Object_Item *item)
EAPI const Elm_Gengrid_Item_Class *
elm_gengrid_item_item_class_get(const Elm_Object_Item *it)
{
Elm_Gen_Item *item = (Elm_Gen_Item *)it;
ELM_GENGRID_ITEM_CHECK_OR_RETURN(it, NULL);
if (item->generation < GG_IT(item)->wsd->generation) return NULL;
return item->itc;
return (Elm_Gengrid_Item_Class *)elm_gengrid_item_item_class_get(it);
}