efl_ui_container_layout: use correct property
authorYeongjong Lee <yj34.lee@samsung.com>
Mon, 25 Mar 2019 09:56:41 +0000 (09:56 +0000)
committerYeongjong Lee <yj34.lee@samsung.com>
Tue, 2 Apr 2019 03:45:17 +0000 (12:45 +0900)
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

src/lib/elementary/efl_ui_container_layout.c

index e8c5979..51934e7 100644 (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;
           }
      }