forked from enlightenment/efl
evas - text - only remove item from list if its in a list
this fixes a n eina complaint - valid as elipsis item was being deleted and it was not in the list of items.
This commit is contained in:
parent
c4f54e23e6
commit
f982f6f0a5
|
@ -169,9 +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;
|
||||
|
||||
o->items = (Evas_Object_Text_Item *) eina_inlist_remove(
|
||||
EINA_INLIST_GET(o->items),
|
||||
EINA_INLIST_GET(it));
|
||||
if (EINA_INLIST_GET(it)->last)
|
||||
o->items = (Evas_Object_Text_Item *)eina_inlist_remove
|
||||
(EINA_INLIST_GET(o->items), EINA_INLIST_GET(it));
|
||||
_evas_object_text_item_clean(it);
|
||||
free(it);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue