From: Enlightenment S. <no-...@en...> - 2011-07-19 11:21:47
|
Log: Edje text: Fixed a bug with text ellipsis being off by 1. Author: tasn Date: 2011-07-19 04:21:35 -0700 (Tue, 19 Jul 2011) New Revision: 61500 Trac: http://trac.enlightenment.org/e/changeset/61500 Modified: trunk/edje/src/lib/edje_text.c Modified: trunk/edje/src/lib/edje_text.c =================================================================== --- trunk/edje/src/lib/edje_text.c 2011-07-19 08:42:27 UTC (rev 61499) +++ trunk/edje/src/lib/edje_text.c 2011-07-19 11:21:35 UTC (rev 61500) @@ -192,7 +192,14 @@ } 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); |