summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2020-02-05 06:11:28 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-02-05 08:58:25 +0100
commit723382bf5c4fb0dd08ebcf4dcda15d69cd24bdc8 (patch)
treef861c820d857bf831a86f92fa9b44249743bf833
parent7f57e8e6019adde04e2b575b4faf851009d46aaf (diff)
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 <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D11283
-rw-r--r--src/lib/evas/canvas/evas_object_smart.c4
1 files 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 0af4fb5ad6..2a27d7b1e8 100644
--- a/src/lib/evas/canvas/evas_object_smart.c
+++ b/src/lib/evas/canvas/evas_object_smart.c
@@ -931,7 +931,7 @@ _efl_canvas_group_efl_gfx_entity_position_set(Eo *eo_obj, Evas_Smart_Data *o, Ei
931 if (o->clipped && !is_overridden) 931 if (o->clipped && !is_overridden)
932 _evas_object_smart_clipped_smart_move_internal(eo_obj, pos.x, pos.y); 932 _evas_object_smart_clipped_smart_move_internal(eo_obj, pos.x, pos.y);
933 efl_gfx_entity_position_set(efl_super(eo_obj, MY_CLASS), pos); 933 efl_gfx_entity_position_set(efl_super(eo_obj, MY_CLASS), pos);
934 efl_gfx_entity_position_set(o->filter_img, pos); 934 if (o->filter_img) efl_gfx_entity_position_set(o->filter_img, pos);
935} 935}
936 936
937EOLIAN static void 937EOLIAN static void
@@ -941,7 +941,7 @@ _efl_canvas_group_efl_gfx_entity_size_set(Eo *obj, Evas_Smart_Data *o, Eina_Size
941 return; 941 return;
942 942
943 efl_gfx_entity_size_set(efl_super(obj, MY_CLASS), size); 943 efl_gfx_entity_size_set(efl_super(obj, MY_CLASS), size);
944 efl_gfx_entity_size_set(o->filter_img, size); 944 if (o->filter_img) efl_gfx_entity_size_set(o->filter_img, size);
945} 945}
946 946
947EOLIAN static void 947EOLIAN static void