summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-08-19 16:12:58 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-08-19 16:12:58 +0200
commitf1e3c7f41f2584ce45e16839e03003234f99ad9a (patch)
tree5f306f952fe27cc2ebb863b31447e9086acc37cc
parentc57cf86d6fa5df5029570c03ac6abe583f5e73f4 (diff)
evas: no need to get the data if it is not the right type of object.
-rw-r--r--src/lib/evas/canvas/evas_object_vg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/evas/canvas/evas_object_vg.c b/src/lib/evas/canvas/evas_object_vg.c
index bdda637004..df4df41bff 100644
--- a/src/lib/evas/canvas/evas_object_vg.c
+++ b/src/lib/evas/canvas/evas_object_vg.c
@@ -128,13 +128,14 @@ _evas_vg_render(Evas_Object_Protected_Data *obj, Evas_VG_Data *vd,
128 void *output, void *context, void *surface, Efl_VG *n, 128 void *output, void *context, void *surface, Efl_VG *n,
129 Eina_Array *clips, Eina_Bool do_async) 129 Eina_Array *clips, Eina_Bool do_async)
130{ 130{
131 Efl_VG_Container_Data *vc = eo_data_scope_get(n, EFL_VG_CONTAINER_CLASS);
132
133 if (eo_isa(n, EFL_VG_CONTAINER_CLASS)) 131 if (eo_isa(n, EFL_VG_CONTAINER_CLASS))
134 { 132 {
133 Efl_VG_Container_Data *vc;
135 Efl_VG *child; 134 Efl_VG *child;
136 Eina_List *l; 135 Eina_List *l;
137 136
137 vc = eo_data_scope_get(n, EFL_VG_CONTAINER_CLASS);
138
138 EINA_LIST_FOREACH(vc->children, l, child) 139 EINA_LIST_FOREACH(vc->children, l, child)
139 _evas_vg_render(obj, vd, 140 _evas_vg_render(obj, vd,
140 output, context, surface, child, 141 output, context, surface, child,