edje should only apply "calculated" text size if that size exists

fixes text.source sizing when size is not specified in child part
This commit is contained in:
Mike Blumenkrantz 2014-04-22 15:21:50 -04:00
parent 5f376fde36
commit e6f0deca27
1 changed files with 2 additions and 1 deletions

View File

@ -255,7 +255,8 @@ _edje_text_recalc_apply(Edje *ed, Edje_Real_Part *ep,
sh = TO_INT(params->eval.h);
}
size = params->type.text.size;
if (params->type.text.size)
size = params->type.text.size;
if (!text) text = "";
if ((text == ep->typedata.text->cache.in_str)