summaryrefslogtreecommitdiff
path: root/src/lib/evas
diff options
context:
space:
mode:
authorSangHyeon Jade Lee <sh10233.lee@samsung.com>2020-02-13 18:49:57 +0900
committerSangHyeon Jade Lee <sh10233.lee@samsung.com>2020-02-13 20:14:55 +0900
commit04b82b3f872dc95f8033a4260b087a09cb516efd (patch)
treee4e677c2cc1eb18c6fa11272e5c1e01edff84fec /src/lib/evas
parentd62f967ed64ae81e2b580347218928454dce3fd9 (diff)
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
Diffstat (limited to 'src/lib/evas')
-rw-r--r--src/lib/evas/canvas/evas_object_textblock.c2
1 files changed, 1 insertions, 1 deletions
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
10458 Eina_Unicode content = 0; 10458 Eina_Unicode content = 0;
10459 if (!inc && cur->pos > 0) 10459 if (!inc && cur->pos > 0)
10460 content = eina_ustrbuf_string_get(cur->node->unicode)[cur->pos - 1]; 10460 content = eina_ustrbuf_string_get(cur->node->unicode)[cur->pos - 1];
10461 else if (inc && cur->pos >= 0 && eina_ustrbuf_length_get(cur->node->unicode) > (cur->pos + 1)) 10461 else if (inc && eina_ustrbuf_length_get(cur->node->unicode) > (cur->pos + 1))
10462 content = eina_ustrbuf_string_get(cur->node->unicode)[cur->pos + 1]; 10462 content = eina_ustrbuf_string_get(cur->node->unicode)[cur->pos + 1];
10463 if (VAR_SEQ(content)) *is_single_glyph = EINA_TRUE; 10463 if (VAR_SEQ(content)) *is_single_glyph = EINA_TRUE;
10464 } 10464 }