From: tasn Date: Wed, 1 Jun 2011 15:08:47 +0000 (+0000) Subject: Evas text: Fix ellipsis bidi, broke it a couple of days ago. X-Git-Tag: submit/trunk/20120815.174732~1396 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=853d532198e7a6320bb19465365b55bc77f3f75e;p=profile%2Fivi%2Fevas.git 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 --- 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