From 0574a687c3feaa306a099733b683246956c12ae8 Mon Sep 17 00:00:00 2001 From: Yeongjong Lee Date: Wed, 5 Feb 2020 06:11:28 +0000 Subject: [PATCH] evas: prevent calling api with NULL filter image This fixes a bunch of warnings like that ``` ../src/lib/eo/eo.c:644 _efl_object_call_resolve() NULL passed to function xxx(). ``` Reviewed-by: Marcel Hollerbach Differential Revision: https://phab.enlightenment.org/D11283 --- src/lib/evas/canvas/evas_object_smart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/evas/canvas/evas_object_smart.c b/src/lib/evas/canvas/evas_object_smart.c index 5e61216..ba0ebce 100644 --- a/src/lib/evas/canvas/evas_object_smart.c +++ b/src/lib/evas/canvas/evas_object_smart.c @@ -935,7 +935,7 @@ _efl_canvas_group_efl_gfx_entity_position_set(Eo *eo_obj, Evas_Smart_Data *o, Ei if (o->clipped && !is_overridden) _evas_object_smart_clipped_smart_move_internal(eo_obj, pos.x, pos.y); efl_gfx_entity_position_set(efl_super(eo_obj, MY_CLASS), pos); - efl_gfx_entity_position_set(o->filter_img, pos); + if (o->filter_img) efl_gfx_entity_position_set(o->filter_img, pos); } EOLIAN static void @@ -945,7 +945,7 @@ _efl_canvas_group_efl_gfx_entity_size_set(Eo *obj, Evas_Smart_Data *o, Eina_Size return; efl_gfx_entity_size_set(efl_super(obj, MY_CLASS), size); - efl_gfx_entity_size_set(o->filter_img, size); + if (o->filter_img) efl_gfx_entity_size_set(o->filter_img, size); } EOLIAN static void -- 2.7.4