remove goto and use if () instead

SVN revision: 71383
This commit is contained in:
Carsten Haitzler 2012-05-24 04:44:44 +00:00
parent d02d6f427e
commit 8839f523c2
1 changed files with 9 additions and 10 deletions

View File

@ -4955,18 +4955,17 @@ _elm_genlist_item_compute_coordinates(Elm_Object_Item *it,
Elm_Gen_Item *_it = (Elm_Gen_Item *)it;
Evas_Coord gith = 0;
if (_it->generation < _it->wd->generation) return EINA_FALSE;
if ((_it->wd->homogeneous) &&
(_it->wd->mode == ELM_LIST_COMPRESS))
goto hm_shortcut; /* homogenous genlist shortcut */
if ((_it->item->queued) || (!_it->item->mincalcd))
if (!((_it->wd->homogeneous) && (_it->wd->mode == ELM_LIST_COMPRESS)))
{
_it->wd->show_item = _it;
_it->wd->bring_in = bring_in;
_it->wd->scrollto_type = type;
_it->item->showme = EINA_TRUE;
return EINA_FALSE;
if ((_it->item->queued) || (!_it->item->mincalcd))
{
_it->wd->show_item = _it;
_it->wd->bring_in = bring_in;
_it->wd->scrollto_type = type;
_it->item->showme = EINA_TRUE;
return EINA_FALSE;
}
}
hm_shortcut:
if (_it->wd->show_item)
{
_it->wd->show_item->item->showme = EINA_FALSE;