From: Yeongjong Lee Date: Mon, 25 Mar 2019 09:56:41 +0000 (+0000) Subject: efl_ui_container_layout: use correct property X-Git-Tag: submit/tizen/20190402.051338~91 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e6e4d13119030e14be86b90fa3bb58c21d105cdd;p=platform%2Fupstream%2Fefl.git 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 Differential Revision: https://phab.enlightenment.org/D8461 --- diff --git a/src/lib/elementary/efl_ui_container_layout.c b/src/lib/elementary/efl_ui_container_layout.c index e8c5979..51934e7 100644 --- a/src/lib/elementary/efl_ui_container_layout.c +++ b/src/lib/elementary/efl_ui_container_layout.c @@ -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; } }