projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
817ca31
)
genlist: Avoid a call to NULL
author
Jean-Philippe Andre
<jp.andre@samsung.com>
Mon, 22 Jan 2018 10:10:48 +0000
(19:10 +0900)
committer
Wonki Kim
<wonki_.kim@samsung.com>
Tue, 3 Apr 2018 07:12:47 +0000
(16:12 +0900)
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.
src/lib/elementary/elm_genlist.c
patch
|
blob
|
history
diff --git
a/src/lib/elementary/elm_genlist.c
b/src/lib/elementary/elm_genlist.c
index
6d56e96
..
987f795
100644
(file)
--- a/
src/lib/elementary/elm_genlist.c
+++ b/
src/lib/elementary/elm_genlist.c
@@
-407,7
+407,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))