summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2019-03-25 09:56:41 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-03-25 10:58:43 +0100
commitaa54d57a07e25e233992a6baccc094a6acc557fe (patch)
tree392d2fb83028501b0b7a6cfcfa2a7dd0735ed2da
parent04122ec311406c689124b69fe60cf1d0f316db88 (diff)
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
-rw-r--r--src/lib/elementary/efl_ui_container_layout.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/elementary/efl_ui_container_layout.c b/src/lib/elementary/efl_ui_container_layout.c
index e8c5979dd0..51934e73c7 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)
87 item[0].min = min.w; 87 item[0].min = min.w;
88 item[1].min = min.h; 88 item[1].min = min.h;
89 89
90 if ((item[0].aspect <= 0) || (item[1].aspect_type <= 0)) 90 if ((item[0].aspect <= 0) || (item[1].aspect <= 0))
91 { 91 {
92 if ((item[0].aspect <= 0) ^ (item[1].aspect_type <= 0)) 92 if ((item[0].aspect <= 0) ^ (item[1].aspect <= 0))
93 { 93 {
94 ERR("Invalid aspect parameter for obj(%p)", o); 94 ERR("Invalid aspect parameter for obj(%p)", o);
95 item[0].aspect = item[1].aspect_type = 0; 95 item[0].aspect = item[1].aspect = 0;
96 item[0].aspect_type = item[1].aspect_type = EFL_GFX_HINT_ASPECT_NONE; 96 item[0].aspect_type = item[1].aspect_type = EFL_GFX_HINT_ASPECT_NONE;
97 } 97 }
98 } 98 }