sanghyeonlee pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=04b82b3f872dc95f8033a4260b087a09cb516efd

commit 04b82b3f872dc95f8033a4260b087a09cb516efd
Author: SangHyeon Jade Lee <[email protected]>
Date:   Thu Feb 13 18:49:57 2020 +0900

    evas_textblock : remove wrong condition check for size_t value
    
    Summary:
    pos in cursor handle is defined size_t type,
    (see efl_canvas_textblock_internal.h)
    which is unsigned int, and always bigger or equal to 0.
    
    Reviewers: bowonryu, ali.alzyod
    
    Reviewed By: ali.alzyod
    
    Subscribers: cedric, #reviewers, #committers
    
    Tags: #efl
    
    Differential Revision: https://phab.enlightenment.org/D11333
---
 src/lib/evas/canvas/evas_object_textblock.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/evas/canvas/evas_object_textblock.c 
b/src/lib/evas/canvas/evas_object_textblock.c
index 4888f826e5..c8c7e12f92 100644
--- a/src/lib/evas/canvas/evas_object_textblock.c
+++ b/src/lib/evas/canvas/evas_object_textblock.c
@@ -10458,7 +10458,7 @@ 
_evas_textblock_cursor_cluster_pos_get(Evas_Textblock_Cursor *cur, Eina_Bool inc
                            Eina_Unicode content = 0;
                            if (!inc && cur->pos > 0)
                               content = 
eina_ustrbuf_string_get(cur->node->unicode)[cur->pos - 1];
-                           else if (inc && cur->pos >= 0 && 
eina_ustrbuf_length_get(cur->node->unicode) > (cur->pos + 1))
+                           else if (inc && 
eina_ustrbuf_length_get(cur->node->unicode) > (cur->pos + 1))
                               content = 
eina_ustrbuf_string_get(cur->node->unicode)[cur->pos + 1];
                            if (VAR_SEQ(content)) *is_single_glyph = EINA_TRUE;
                          }

-- 


Reply via email to