summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorali <ali198724@gmail.com>2019-09-11 11:07:51 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-09-11 11:07:51 -0400
commitc9399b2154d6cdad89fd2e8bc45627c3fcf8be05 (patch)
treed14ede3578adc188ba5b8c86a7149172e0a9b189 /src
parent6028952894030de48a199f1633ad83367d33e63e (diff)
evas_textblock: fix warning
Reviewers: zmike Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9903
Diffstat (limited to 'src')
-rw-r--r--src/lib/evas/canvas/evas_object_textblock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/evas/canvas/evas_object_textblock.c b/src/lib/evas/canvas/evas_object_textblock.c
index 4b88d82..82c66e3 100644
--- a/src/lib/evas/canvas/evas_object_textblock.c
+++ b/src/lib/evas/canvas/evas_object_textblock.c
@@ -9802,8 +9802,8 @@ EAPI Eina_Bool evas_textblock_cursor_at_cluster_as_single_glyph(Evas_Textblock_C
9802{ 9802{
9803 Eina_Bool is_single_glyph = EINA_FALSE; 9803 Eina_Bool is_single_glyph = EINA_FALSE;
9804 size_t ret = _evas_textblock_cursor_cluster_pos_get(cur, forward, &is_single_glyph); 9804 size_t ret = _evas_textblock_cursor_cluster_pos_get(cur, forward, &is_single_glyph);
9805 9805 size_t distance = (ret > cur->pos) ? ret - cur->pos : cur->pos - ret;
9806 if ((abs(ret-cur->pos) > 1) && is_single_glyph) 9806 if ((distance > 1) && is_single_glyph)
9807 { 9807 {
9808 return EINA_TRUE; 9808 return EINA_TRUE;
9809 } 9809 }