Do set the max to the image size if asked for it

SVN revision: 67567
This commit is contained in:
Iván Briano 2012-01-27 14:32:45 +00:00
parent 16b49b02f5
commit fdbbef9af9
1 changed files with 2 additions and 2 deletions

View File

@ -1978,8 +1978,8 @@ _edje_part_recalc_single(Edje *ed,
}
if (((Edje_Part_Description_Image *)chosen_desc)->image.max.limit)
{
if (w < maxw) maxw = w;
if (h < maxh) maxh = h;
if ((maxw <= 0) || (w < maxw)) maxw = w;
if ((maxh <= 0) || (h < maxh)) maxh = h;
}
}