summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_object_polygon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/evas/canvas/evas_object_polygon.c')
-rw-r--r--src/lib/evas/canvas/evas_object_polygon.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/evas/canvas/evas_object_polygon.c b/src/lib/evas/canvas/evas_object_polygon.c
index 90c05dd..8f65277 100644
--- a/src/lib/evas/canvas/evas_object_polygon.c
+++ b/src/lib/evas/canvas/evas_object_polygon.c
@@ -84,9 +84,7 @@ static const Evas_Object_Func object_func =
84EAPI Evas_Object * 84EAPI Evas_Object *
85evas_object_polygon_add(Evas *e) 85evas_object_polygon_add(Evas *e)
86{ 86{
87 MAGIC_CHECK(e, Evas, MAGIC_EVAS); 87 EINA_SAFETY_ON_FALSE_RETURN_VAL(efl_isa(e, EVAS_CANVAS_CLASS), NULL);
88 return NULL;
89 MAGIC_CHECK_END();
90 return efl_add(MY_CLASS, evas_find(e), efl_canvas_object_legacy_ctor(efl_added)); 88 return efl_add(MY_CLASS, evas_find(e), efl_canvas_object_legacy_ctor(efl_added));
91} 89}
92 90