summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-09-06 12:43:32 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-09-06 12:43:32 -0400
commitacd9eb2466782661a17750c95507b698b39d9cfe (patch)
tree9908a7b3397c630ac083e5f716d269be85c82ed0
parentcb2b6d666cf21ae575d09339a5aedf1dc180ca6e (diff)
efl_ui/box: restore previous behavior for passing null reference objects
Reviewers: segfaultxavi Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9865
-rw-r--r--src/lib/elementary/efl_ui_box.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elementary/efl_ui_box.c b/src/lib/elementary/efl_ui_box.c
index 04533f997e..3cee95ccab 100644
--- a/src/lib/elementary/efl_ui_box.c
+++ b/src/lib/elementary/efl_ui_box.c
@@ -282,7 +282,7 @@ _efl_ui_box_efl_pack_linear_pack_begin(Eo *obj, Efl_Ui_Box_Data *pd, Efl_Gfx_Ent
282EOLIAN static Eina_Bool 282EOLIAN static Eina_Bool
283_efl_ui_box_efl_pack_linear_pack_before(Eo *obj, Efl_Ui_Box_Data *pd, Efl_Gfx_Entity *subobj, const Efl_Gfx_Entity *existing) 283_efl_ui_box_efl_pack_linear_pack_before(Eo *obj, Efl_Ui_Box_Data *pd, Efl_Gfx_Entity *subobj, const Efl_Gfx_Entity *existing)
284{ 284{
285 EINA_SAFETY_ON_FALSE_RETURN_VAL(eina_list_data_find(pd->children, existing), EINA_FALSE); 285 if (existing) EINA_SAFETY_ON_FALSE_RETURN_VAL(eina_list_data_find(pd->children, existing), EINA_FALSE);
286 286
287 if (!_efl_ui_box_child_register(obj, pd, subobj)) 287 if (!_efl_ui_box_child_register(obj, pd, subobj))
288 return EINA_FALSE; 288 return EINA_FALSE;
@@ -295,7 +295,7 @@ _efl_ui_box_efl_pack_linear_pack_before(Eo *obj, Efl_Ui_Box_Data *pd, Efl_Gfx_En
295EOLIAN static Eina_Bool 295EOLIAN static Eina_Bool
296_efl_ui_box_efl_pack_linear_pack_after(Eo *obj, Efl_Ui_Box_Data *pd, Efl_Gfx_Entity *subobj, const Efl_Gfx_Entity *existing) 296_efl_ui_box_efl_pack_linear_pack_after(Eo *obj, Efl_Ui_Box_Data *pd, Efl_Gfx_Entity *subobj, const Efl_Gfx_Entity *existing)
297{ 297{
298 EINA_SAFETY_ON_FALSE_RETURN_VAL(eina_list_data_find(pd->children, existing), EINA_FALSE); 298 if (existing) EINA_SAFETY_ON_FALSE_RETURN_VAL(eina_list_data_find(pd->children, existing), EINA_FALSE);
299 299
300 if (!_efl_ui_box_child_register(obj, pd, subobj)) 300 if (!_efl_ui_box_child_register(obj, pd, subobj))
301 return EINA_FALSE; 301 return EINA_FALSE;