diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2013-11-02 19:35:45 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2013-11-02 19:35:45 +0900 |
commit | f982f6f0a5b9264d06c6e96a04139debe8f726c4 (patch) | |
tree | 1c9f22722d3c30216f9a82a2dd9cece13a4931b8 /src/lib/evas/canvas/evas_object_text.c | |
parent | c4f54e23e617b758110abc2cd91569a32aa2126a (diff) |
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.
Diffstat (limited to '')
-rw-r--r-- | src/lib/evas/canvas/evas_object_text.c | 6 |
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 | } |