summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_object_line.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/evas/canvas/evas_object_line.c')
-rw-r--r--src/lib/evas/canvas/evas_object_line.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/evas/canvas/evas_object_line.c b/src/lib/evas/canvas/evas_object_line.c
index e26ea66..f506f75 100644
--- a/src/lib/evas/canvas/evas_object_line.c
+++ b/src/lib/evas/canvas/evas_object_line.c
@@ -94,9 +94,7 @@ static const Evas_Object_Func object_func =
94EAPI Evas_Object * 94EAPI Evas_Object *
95evas_object_line_add(Evas *e) 95evas_object_line_add(Evas *e)
96{ 96{
97 MAGIC_CHECK(e, Evas, MAGIC_EVAS); 97 EINA_SAFETY_ON_FALSE_RETURN_VAL(efl_isa(e, EVAS_CANVAS_CLASS), NULL);
98 return NULL;
99 MAGIC_CHECK_END();
100 return efl_add(EVAS_LINE_CLASS, evas_find(e), efl_canvas_object_legacy_ctor(efl_added)); 98 return efl_add(EVAS_LINE_CLASS, evas_find(e), efl_canvas_object_legacy_ctor(efl_added));
101} 99}
102 100