elementary genlist: make it sure object type.

Summary:
elm has some cases that resize_obj is not the group object.
That case, efl_canvas_group_need_recalculate_get() prints
annoying type-check errors.

Reviewers: #committers, SanghyeonLee

Reviewed By: #committers, SanghyeonLee

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D7557
This commit is contained in:
Hermet Park 2019-01-08 20:01:23 +09:00
parent 3a5acad50e
commit 12d2a4ce00
1 changed files with 6 additions and 3 deletions

View File

@ -385,9 +385,12 @@ _widget_calculate_recursive(Eo *obj)
if (!pd || !pd->resize_obj)
return;
if (!efl_canvas_group_need_recalculate_get(obj) &&
!efl_canvas_group_need_recalculate_get(pd->resize_obj))
return;
if (!efl_canvas_group_need_recalculate_get(obj))
{
if (!efl_isa(pd->resize_obj, EFL_CANVAS_GROUP_CLASS) ||
!efl_canvas_group_need_recalculate_get(pd->resize_obj))
return;
}
EINA_LIST_FOREACH(pd->subobjs, l, child)
_widget_calculate_recursive(child);