From 853d532198e7a6320bb19465365b55bc77f3f75e Mon Sep 17 00:00:00 2001 From: tasn Date: Wed, 1 Jun 2011 15:08:47 +0000 Subject: [PATCH] Evas text: Fix ellipsis bidi, broke it a couple of days ago. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@59877 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/canvas/evas_object_text.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/canvas/evas_object_text.c b/src/lib/canvas/evas_object_text.c index b370eb2..c65b4aa 100644 --- a/src/lib/canvas/evas_object_text.c +++ b/src/lib/canvas/evas_object_text.c @@ -555,7 +555,7 @@ _evas_object_text_layout(Evas_Object *obj, Evas_Object_Text *o, const Eina_Unico { EvasBiDiStrIndex *v_to_l = NULL; size_t pos, visual_pos; - int len = eina_unicode_strlen(text); + int len = eina_unicode_strlen(text), par_len; #ifdef BIDI_SUPPORT int *segment_idxs = NULL; if (o->bidi_delimiters) @@ -567,6 +567,7 @@ _evas_object_text_layout(Evas_Object *obj, Evas_Object_Text *o, const Eina_Unico #endif visual_pos = pos = 0; + par_len = len; while (len > 0) { Evas_Font_Instance *script_fi = NULL; @@ -593,7 +594,7 @@ _evas_object_text_layout(Evas_Object *obj, Evas_Object_Text *o, const Eina_Unico } #ifdef BIDI_SUPPORT visual_pos = evas_bidi_position_logical_to_visual( - v_to_l, run_len, pos); + v_to_l, par_len, pos); #else visual_pos = pos; #endif -- 2.7.4