The `if` condition check whether horizontal, vertical aspect are greater than 0.
`aspect` is correct here.
this patch fixes T7756
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D8461
item[0].min = min.w;
item[1].min = min.h;
- if ((item[0].aspect <= 0) || (item[1].aspect_type <= 0))
+ if ((item[0].aspect <= 0) || (item[1].aspect <= 0))
{
- if ((item[0].aspect <= 0) ^ (item[1].aspect_type <= 0))
+ if ((item[0].aspect <= 0) ^ (item[1].aspect <= 0))
{
ERR("Invalid aspect parameter for obj(%p)", o);
- item[0].aspect = item[1].aspect_type = 0;
+ item[0].aspect = item[1].aspect = 0;
item[0].aspect_type = item[1].aspect_type = EFL_GFX_HINT_ASPECT_NONE;
}
}