summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2018-12-28 13:38:36 +0900
committerHermet Park <hermetpark@gmail.com>2018-12-28 13:39:37 +0900
commit5a46f2136a03af6d54dedf829bcf1ec398626a0e (patch)
treedc6bf1959a39870fb0b38bc96ad7feaa91c833f2
parentd2ec3ce17039dcb16966532a41ccf7bf6cb906e0 (diff)
evas vg: more strict check for the argument.
a shape node must have vg node as the parent.
-rw-r--r--src/lib/evas/canvas/efl_canvas_vg_shape.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/evas/canvas/efl_canvas_vg_shape.c b/src/lib/evas/canvas/efl_canvas_vg_shape.c
index d1c41fa8aa..dc671f918b 100644
--- a/src/lib/evas/canvas/efl_canvas_vg_shape.c
+++ b/src/lib/evas/canvas/efl_canvas_vg_shape.c
@@ -454,13 +454,13 @@ evas_vg_shape_equal_commands(Eo *obj, const Eo *with)
454 return efl_gfx_path_equal_commands(obj, with); 454 return efl_gfx_path_equal_commands(obj, with);
455} 455}
456 456
457EAPI Efl_Canvas_Vg_Node* 457EAPI Efl_Canvas_Vg_Shape*
458evas_vg_shape_add(Efl_Canvas_Vg_Node *parent) 458evas_vg_shape_add(Efl_Canvas_Vg_Node *parent)
459{ 459{
460 /* Warn it because the usage has been changed. 460 /* Warn it because the usage has been changed.
461 We can remove this message after v1.21. */ 461 We can remove this message after v1.21. */
462 if (!parent) CRI("Efl_VG Shape doesn't allow null parent!"); 462 if (!parent) CRI("Efl_Canvas_Vg_Shape only allow Efl_Canvas_Vg_Node as the parent");
463 return efl_add(EFL_CANVAS_VG_SHAPE_CLASS, parent); 463 return efl_add(MY_CLASS, parent);
464} 464}
465 465
466#include "efl_canvas_vg_shape.eo.c" 466#include "efl_canvas_vg_shape.eo.c"