Edje text: Fixed a bug with text ellipsis being off by 1.
authortasn <tasn>
Tue, 19 Jul 2011 11:21:35 +0000 (11:21 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 19 Jul 2011 11:21:35 +0000 (11:21 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@61500 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/edje_text.c

index a2038d0..0cf6101 100644 (file)
@@ -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);