summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/evas/canvas/evas_object_text.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/evas/canvas/evas_object_text.c b/src/lib/evas/canvas/evas_object_text.c
index 5922d1b673..4739a1121e 100644
--- a/src/lib/evas/canvas/evas_object_text.c
+++ b/src/lib/evas/canvas/evas_object_text.c
@@ -169,9 +169,9 @@ _evas_object_text_item_del(Evas_Object_Text *o, Evas_Object_Text_Item *it)
169 else if (o->last_computed.ellipsis_end == it) 169 else if (o->last_computed.ellipsis_end == it)
170 o->last_computed.ellipsis_end = NULL; 170 o->last_computed.ellipsis_end = NULL;
171 171
172 o->items = (Evas_Object_Text_Item *) eina_inlist_remove( 172 if (EINA_INLIST_GET(it)->last)
173 EINA_INLIST_GET(o->items), 173 o->items = (Evas_Object_Text_Item *)eina_inlist_remove
174 EINA_INLIST_GET(it)); 174 (EINA_INLIST_GET(o->items), EINA_INLIST_GET(it));
175 _evas_object_text_item_clean(it); 175 _evas_object_text_item_clean(it);
176 free(it); 176 free(it);
177} 177}