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)
downloadefl-f1e3c7f41f2584ce45e16839e03003234f99ad9a.tar.gz
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,
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,