evas: Evas_VG_Root_Node should only be attached to an Evas_Object_VG. 35/43135/1
authorCedric BAIL <cedric@osg.samsung.com>
Wed, 10 Dec 2014 07:07:47 +0000 (08:07 +0100)
committerSubhransu Mohanty <sub.mohanty@samsung.com>
Wed, 8 Jul 2015 01:54:55 +0000 (10:54 +0900)
Change-Id: I1f62ffadc117c89049b45b385d8fbba4502c067d

src/lib/evas/canvas/evas_vg_root_node.c

index 33f9d21..d77c4c5 100644 (file)
@@ -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);
 }