summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_object_text.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/evas/canvas/evas_object_text.c')
-rw-r--r--src/lib/evas/canvas/evas_object_text.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_object_text.c b/src/lib/evas/canvas/evas_object_text.c
index 4739a1121e..b61e7d0c68 100644
--- a/src/lib/evas/canvas/evas_object_text.c
+++ b/src/lib/evas/canvas/evas_object_text.c
@@ -169,7 +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 if (EINA_INLIST_GET(it)->last) 172 if ((EINA_INLIST_GET(it)->next) ||
173 (EINA_INLIST_GET(it)->prev) ||
174 (o->items == (EINA_INLIST_GET(it))))
173 o->items = (Evas_Object_Text_Item *)eina_inlist_remove 175 o->items = (Evas_Object_Text_Item *)eina_inlist_remove
174 (EINA_INLIST_GET(o->items), EINA_INLIST_GET(it)); 176 (EINA_INLIST_GET(o->items), EINA_INLIST_GET(it));
175 _evas_object_text_item_clean(it); 177 _evas_object_text_item_clean(it);