evas: no need to get the data if it is not the right type of object.
authorCedric BAIL <cedric@osg.samsung.com>
Wed, 19 Aug 2015 14:12:58 +0000 (16:12 +0200)
committerCedric BAIL <cedric@osg.samsung.com>
Wed, 19 Aug 2015 14:12:58 +0000 (16:12 +0200)
src/lib/evas/canvas/evas_object_vg.c

index bdda637..df4df41 100644 (file)
@@ -128,13 +128,14 @@ _evas_vg_render(Evas_Object_Protected_Data *obj, Evas_VG_Data *vd,
                 void *output, void *context, void *surface, Efl_VG *n,
                 Eina_Array *clips, Eina_Bool do_async)
 {
-   Efl_VG_Container_Data *vc = eo_data_scope_get(n, EFL_VG_CONTAINER_CLASS);
-
    if (eo_isa(n, EFL_VG_CONTAINER_CLASS))
      {
+        Efl_VG_Container_Data *vc;
         Efl_VG *child;
         Eina_List *l;
 
+        vc = eo_data_scope_get(n, EFL_VG_CONTAINER_CLASS);
+
         EINA_LIST_FOREACH(vc->children, l, child)
           _evas_vg_render(obj, vd,
                           output, context, surface, child,