From 91408e5bb652bcfc896f164b80cf68966cfdc73d Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Fri, 29 Mar 2019 13:25:54 +0100 Subject: [PATCH] efl_ui_layout: ensure that resize_obj is present before emitting signals otherwise there will be warnings because of calling api on NULL objects. Differential Revision: https://phab.enlightenment.org/D8512 --- src/lib/elementary/efl_ui_layout.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/elementary/efl_ui_layout.c b/src/lib/elementary/efl_ui_layout.c index e483a99..f5251b4 100644 --- a/src/lib/elementary/efl_ui_layout.c +++ b/src/lib/elementary/efl_ui_layout.c @@ -475,6 +475,9 @@ static void _flush_mirrored_state(Eo *obj) { char prefix[4], state[10], signal[100]; + ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd); + + if (!wd->resize_obj) return; if (efl_ui_widget_disabled_get(obj)) snprintf(state, sizeof(state), "disabled"); -- 2.7.4