evas - re-fix to use first, last or if item is list head on text recomp

This commit is contained in:
Carsten Haitzler 2013-11-03 20:33:05 +09:00
parent a3ce7c9b28
commit 4eb7b81925
1 changed files with 3 additions and 1 deletions

View File

@ -169,7 +169,9 @@ _evas_object_text_item_del(Evas_Object_Text *o, Evas_Object_Text_Item *it)
else if (o->last_computed.ellipsis_end == it)
o->last_computed.ellipsis_end = NULL;
if (EINA_INLIST_GET(it)->last)
if ((EINA_INLIST_GET(it)->next) ||
(EINA_INLIST_GET(it)->prev) ||
(o->items == (EINA_INLIST_GET(it))))
o->items = (Evas_Object_Text_Item *)eina_inlist_remove
(EINA_INLIST_GET(o->items), EINA_INLIST_GET(it));
_evas_object_text_item_clean(it);