cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=126edbb48c4f065fe68cb4d60760102498d93ad2

commit 126edbb48c4f065fe68cb4d60760102498d93ad2
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Sat Jul 4 02:28:33 2015 +0200

    evas: allow parent during dup to be an Evas_Object_VG.
---
 src/lib/evas/canvas/evas_vg_node.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/lib/evas/canvas/evas_vg_node.c 
b/src/lib/evas/canvas/evas_vg_node.c
index 0f73808..901e550 100644
--- a/src/lib/evas/canvas/evas_vg_node.c
+++ b/src/lib/evas/canvas/evas_vg_node.c
@@ -238,9 +238,13 @@ _efl_vg_base_parent_checked_get(Eo *obj,
              goto on_error;
           }
      }
+   else if (eo_isa(*parent, EVAS_VG_CLASS))
+     {
+        goto on_error;
+     }
    else if (*parent != NULL)
      {
-        ERR("Parent of unauthorized class.");
+        ERR("Parent of unauthorized class '%s'.", 
eo_class_name_get(eo_class_get(*parent)));
         goto on_error;
      }
 

-- 


Reply via email to