tasn pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=f7cf96d4d94f536de916e798b7ce3bc9b5c80cc5
commit f7cf96d4d94f536de916e798b7ce3bc9b5c80cc5 Author: Youngbok Shin <youngb.s...@samsung.com> Date: Tue Jun 10 15:08:09 2014 +0100 evas/textblock: check item's type before returning result. Summary: When format item is cut off by ellipsis, result of "_find_layout_item_line_match" can be TEXT type item. And it keeps ellipsis item's information. @fix Test Plan: D974 Reviewers: woohyun, tasn CC: cedric, herdsman Differential Revision: https://phab.enlightenment.org/D975 --- src/lib/evas/canvas/evas_object_textblock.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/evas/canvas/evas_object_textblock.c b/src/lib/evas/canvas/evas_object_textblock.c index b01a554..fc90a4f 100644 --- a/src/lib/evas/canvas/evas_object_textblock.c +++ b/src/lib/evas/canvas/evas_object_textblock.c @@ -10321,6 +10321,7 @@ evas_textblock_cursor_format_item_geometry_get(const Evas_Textblock_Cursor *cur, if (!evas_textblock_cursor_format_is_visible_get(cur)) return EINA_FALSE; _find_layout_item_line_match(cur->obj, cur->node, cur->pos, &ln, &it); + if (it && (it->type != EVAS_TEXTBLOCK_ITEM_FORMAT)) return EINA_FALSE; fi = _ITEM_FORMAT(it); if ((!ln) || (!fi)) return EINA_FALSE; x = ln->x + fi->parent.x; --