aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2018-01-22 19:10:48 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2018-01-22 20:38:37 +0900
commit2c66616179df0be9e55808d1dc0d3ad3762dd016 (patch)
tree0f85708468c27382dfb1f9180a17c2094ef3c7ee
parentefl_selection_manager: fix compilation on osx after rename (diff)
downloadefl-2c66616179df0be9e55808d1dc0d3ad3762dd016.tar.gz
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.
-rw-r--r--src/lib/elementary/elm_genlist.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_genlist.c b/src/lib/elementary/elm_genlist.c
index 07ba4f1a84..4aaba095eb 100644
--- a/src/lib/elementary/elm_genlist.c
+++ b/src/lib/elementary/elm_genlist.c
@@ -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))