forked from enlightenment/efl
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:
parent
3a5acad50e
commit
12d2a4ce00
|
@ -385,9 +385,12 @@ _widget_calculate_recursive(Eo *obj)
|
||||||
if (!pd || !pd->resize_obj)
|
if (!pd || !pd->resize_obj)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!efl_canvas_group_need_recalculate_get(obj) &&
|
if (!efl_canvas_group_need_recalculate_get(obj))
|
||||||
!efl_canvas_group_need_recalculate_get(pd->resize_obj))
|
{
|
||||||
return;
|
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)
|
EINA_LIST_FOREACH(pd->subobjs, l, child)
|
||||||
_widget_calculate_recursive(child);
|
_widget_calculate_recursive(child);
|
||||||
|
|
Loading…
Reference in New Issue