Just cut/ellipsis if text.min.x is not set.

This should fix the bug with the following code:

collections {
   group { name: "main";
      parts {
         part { name: "text";
            type: TEXT;
            description { state: "default" 0.0;
               text {
                  font: "Sans";
                  size: 72;
                  text: "contents";
                  fit: 0 1;
                  min: 1 0;
               }
            }
         }
      }
   }
}




SVN revision: 62639
This commit is contained in:
Gustavo Sverzut Barbieri 2011-08-20 23:47:46 +00:00
parent f7d1b738e6
commit ddc7fb9527
1 changed files with 1 additions and 0 deletions

View File

@ -562,6 +562,7 @@ _edje_text_recalc_apply(Edje *ed, Edje_Real_Part *ep,
size = chosen_desc->text.size_range_min;
/* Handle ellipsis */
if (!chosen_desc->text.min_x)
{
if (inlined_font) evas_object_text_font_source_set(ep->object, ed->path);
else evas_object_text_font_source_set(ep->object, NULL);