From 126edbb48c4f065fe68cb4d60760102498d93ad2 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Sat, 4 Jul 2015 02:28:33 +0200 Subject: [PATCH] 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; } -- 2.7.4