patch from tasn: rtl fit.

SVN revision: 43886
This commit is contained in:
Carsten Haitzler 2009-11-22 01:49:44 +00:00
parent a6dea7be9b
commit 84077e2f18
1 changed files with 6 additions and 6 deletions

View File

@ -135,13 +135,13 @@ _edje_text_fit_x(Edje *ed, Edje_Real_Part *ep,
if (tw > sw)
{
if (params->type.text.elipsis != 0.0)
c1 = evas_object_text_char_coords_get(ep->object,
-p + l, th / 2,
NULL, NULL, NULL, NULL);
/* should be the last in text! not the rightmost */
c1 = evas_object_text_last_up_to_pos(ep->object,
-p + l, th / 2);
if (params->type.text.elipsis != 1.0)
c2 = evas_object_text_char_coords_get(ep->object,
-p + sw - r, th / 2,
NULL, NULL, NULL, NULL);
/* should be the last in text! not the rightmost */
c2 = evas_object_text_last_up_to_pos(ep->object,
-p + sw - r, th / 2);
if ((c1 < 0) && (c2 < 0))
{
c1 = 0;