aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2019-01-08 20:01:23 +0900
committerHermet Park <hermetpark@gmail.com>2019-01-08 20:01:23 +0900
commit12d2a4ce0012bec5d0f62d3011d1fc6722e29426 (patch)
tree1f3d4526674532da2c0bf53c40503909903942bb /src/lib
parentelementary selection_manager: remove unused paramter warning. (diff)
downloadefl-12d2a4ce0012bec5d0f62d3011d1fc6722e29426.tar.gz
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
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/elementary/elm_genlist.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/elementary/elm_genlist.c b/src/lib/elementary/elm_genlist.c
index 0e7b3a47a1..76d168c195 100644
--- a/src/lib/elementary/elm_genlist.c
+++ b/src/lib/elementary/elm_genlist.c
@@ -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);