From 1454281523ec9316823a1f5bd481bf616c842c9b Mon Sep 17 00:00:00 2001 From: tasn Date: Tue, 19 Jul 2011 11:21:35 +0000 Subject: [PATCH] Edje text: Fixed a bug with text ellipsis being off by 1. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@61500 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/edje_text.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/lib/edje_text.c b/src/lib/edje_text.c index a2038d0..0cf6101 100644 --- a/src/lib/edje_text.c +++ b/src/lib/edje_text.c @@ -192,7 +192,14 @@ _edje_text_fit_x(Edje *ed, Edje_Real_Part *ep, } if (uc2 >= 0) { - c2 = c1; + if (c1 >= 0) + { + c2 = c1; + } + else + { + c2 = 0; + } for ( ; i < uc2 ; i++) { c2 = evas_string_char_next_get(text, c2, NULL); -- 2.7.4