From 9dcf840ade4c787c9cf26026328d0abfb6df5852 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Fri, 3 Apr 2015 16:13:05 +0200 Subject: [PATCH] evas: Evas_VG_Root_Node should only be attached to an Evas_Object_VG. --- src/lib/evas/canvas/evas_vg_root_node.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/lib/evas/canvas/evas_vg_root_node.c b/src/lib/evas/canvas/evas_vg_root_node.c index 33f9d218..d77c4c5 100644 --- a/src/lib/evas/canvas/evas_vg_root_node.c +++ b/src/lib/evas/canvas/evas_vg_root_node.c @@ -19,8 +19,7 @@ _evas_vg_root_node_eo_base_parent_set(Eo *obj, { // Nice little hack, jump over parent parent_set in Evas_VG_Root eo_do_super(obj, EVAS_VG_NODE_CLASS, eo_constructor()); - if (!eo_isa(parent, EVAS_VG_CLASS) && - !eo_isa(parent, EVAS_VG_CONTAINER_CLASS)) + if (!eo_isa(parent, EVAS_VG_CLASS)) eo_error_set(obj); } @@ -33,8 +32,7 @@ _evas_vg_root_node_eo_base_constructor(Eo *obj, // Nice little hack, jump over parent constructor in Evas_VG_Root eo_do_super(obj, EVAS_VG_NODE_CLASS, eo_constructor()); eo_do(obj, parent = eo_parent_get()); - if (!eo_isa(parent, EVAS_VG_CLASS) && - !eo_isa(parent, EVAS_VG_CONTAINER_CLASS)) + if (!eo_isa(parent, EVAS_VG_CLASS)) eo_error_set(obj); } -- 2.7.4