Edje text: fix issue with ellipsis causing text to disappear.

Thanks to Brian Wang for the report.

SVN revision: 59305
This commit is contained in:
Tom Hacohen 2011-05-09 17:23:03 +00:00
parent 21971b92a0
commit 0ea73e70f7
1 changed files with 2 additions and 2 deletions

View File

@ -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++)