forked from enlightenment/efl
evas_vg_shape: return NULL in evas_vg_shape_add when the parent of shape is NULL
Summary: evas_vg_shaep_add should returned NULL when the parent is NULL because the function does not allow the NULL parent. @fix Reviewers: jsuya, Hermet Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11839
This commit is contained in:
parent
0033f2b8ed
commit
e4964f94fa
|
@ -474,7 +474,12 @@ evas_vg_shape_add(Efl_Canvas_Vg_Node *parent)
|
|||
{
|
||||
/* Warn it because the usage has been changed.
|
||||
We can remove this message after v1.21. */
|
||||
if (!parent) CRI("Efl_Canvas_Vg_Shape only allow Efl_Canvas_Vg_Node as the parent");
|
||||
if (!parent)
|
||||
{
|
||||
ERR("Efl_Canvas_Vg_Shape only allow Efl_Canvas_Vg_Node as the parent");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return efl_add(MY_CLASS, parent);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue