summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoungbok Shin <youngb.shin@samsung.com>2014-05-21 10:39:36 +0100
committerTom Hacohen <tom@stosb.com>2014-05-21 10:42:19 +0100
commit736b02cd22679e5e3b9e69ee2f71a40026555a17 (patch)
treee38ba3e179c48a468eb412f6901b9f319ee7de3e
parent316b35a0c64cfcd38c04d37d1e73b0533fd7387c (diff)
evas/text: fix abnormal ellipsis logic when harfbuzz is enabled.
Summary: text_props.len indicates visual length from harfbuzz logic when it is available. But, input pram "idx" is logical length. So, ellipsis works abnormally in some case. @fix Test Plan: D870 Reviewers: tasn, woohyun CC: cedric, herdsman Differential Revision: https://phab.enlightenment.org/D871
-rw-r--r--src/lib/evas/canvas/evas_object_text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_object_text.c b/src/lib/evas/canvas/evas_object_text.c
index 8a35fdd134..8c74dc16fe 100644
--- a/src/lib/evas/canvas/evas_object_text.c
+++ b/src/lib/evas/canvas/evas_object_text.c
@@ -685,7 +685,7 @@ static Eina_Bool
685_layout_text_item_trim(Evas_Object_Protected_Data *obj, Evas_Object_Text *o, Evas_Object_Text_Item *ti, int idx, Eina_Bool want_start) 685_layout_text_item_trim(Evas_Object_Protected_Data *obj, Evas_Object_Text *o, Evas_Object_Text_Item *ti, int idx, Eina_Bool want_start)
686{ 686{
687 Evas_Text_Props new_text_props; 687 Evas_Text_Props new_text_props;
688 if (idx >= (int) ti->text_props.len) 688 if (idx >= (int) ti->text_props.text_len)
689 return EINA_FALSE; 689 return EINA_FALSE;
690 690
691 memset(&new_text_props, 0, sizeof (new_text_props)); 691 memset(&new_text_props, 0, sizeof (new_text_props));