raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=4eb7b8192533451e216b00f6b32ca4340c035550

commit 4eb7b8192533451e216b00f6b32ca4340c035550
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Sun Nov 3 20:33:05 2013 +0900

    evas - re-fix to use first, last or if item is list head on text recomp
---
 src/lib/evas/canvas/evas_object_text.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/lib/evas/canvas/evas_object_text.c 
b/src/lib/evas/canvas/evas_object_text.c
index 4739a11..b61e7d0 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)
    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);

-- 


Reply via email to