From: tasn Date: Mon, 9 May 2011 17:23:03 +0000 (+0000) Subject: Edje text: fix issue with ellipsis causing text to disappear. X-Git-Tag: submit/trunk/20120815.180907~646 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=641a8ea2ee2db15ea27103393702dddfd37c5dc4;p=profile%2Fivi%2Fedje.git Edje text: fix issue with ellipsis causing text to disappear. Thanks to Brian Wang for the report. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@59305 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/edje_text.c b/src/lib/edje_text.c index 5f4b04e..c29cbe7 100644 --- a/src/lib/edje_text.c +++ b/src/lib/edje_text.c @@ -177,7 +177,7 @@ _edje_text_fit_x(Edje *ed, Edje_Real_Part *ep, /* Convert uc1, uc2 -> c1, c2 */ i = 0; - if (uc1 > 0) + if (uc1 >= 0) { c1 = 0; for ( ; i < uc1 ; i++) @@ -185,7 +185,7 @@ _edje_text_fit_x(Edje *ed, Edje_Real_Part *ep, c1 = evas_string_char_next_get(text, c1, NULL); } } - if (uc2 > 0) + if (uc2 >= 0) { c2 = c1; for ( ; i < uc2 ; i++)