genlist: Avoid a call to NULL

elementary_test -to genlist
-> LOTS of warnings, when creating the genlist, as the items aren't
ready yet. This just avoids the WRN as recalc will happen later anyway.
This commit is contained in:
Jean-Philippe Andre 2018-01-22 19:10:48 +09:00
parent 131ddded60
commit 2c66616179
1 changed files with 2 additions and 1 deletions

View File

@ -382,7 +382,8 @@ _widget_calculate_recursive(Eo *obj)
if (!efl_isa(obj, EFL_UI_WIDGET_CLASS)) return;
pd = efl_data_scope_get(obj, EFL_UI_WIDGET_CLASS);
if (!pd) return;
if (!pd || !pd->resize_obj)
return;
if (!efl_canvas_group_need_recalculate_get(obj) &&
!efl_canvas_group_need_recalculate_get(pd->resize_obj))