tasn pushed a commit to branch efl-1.10.

http://git.enlightenment.org/core/efl.git/commit/?id=5c7f0f92d12c1462354e03e94f8d24c9ec3ee7e0

commit 5c7f0f92d12c1462354e03e94f8d24c9ec3ee7e0
Author: Youngbok Shin <[email protected]>
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 bc0430d..683c6e9 100644
--- a/src/lib/evas/canvas/evas_object_textblock.c
+++ b/src/lib/evas/canvas/evas_object_textblock.c
@@ -10161,6 +10161,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;

-- 


Reply via email to