efl_ui_container_layout: use correct property

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
This commit is contained in:
Yeongjong Lee 2019-03-25 09:56:41 +00:00 committed by Marcel Hollerbach
parent 04122ec311
commit aa54d57a07
1 changed files with 3 additions and 3 deletions

View File

@ -87,12 +87,12 @@ _efl_ui_container_layout_item_init(Eo* o, Efl_Ui_Container_Item_Hints *item)
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;
}
}