jackdanielz pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=334ac705f36e0f2a73c1a87cbd3ebe272e3b7ab6

commit 334ac705f36e0f2a73c1a87cbd3ebe272e3b7ab6
Author: Daniel Zaoui <daniel.za...@samsung.com>
Date:   Sun Sep 29 08:50:32 2013 +0300

    Eo: fix when detaching the composite of its parent ... that has to exist
---
 src/lib/eo/eo_base_class.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c
index 28b52d9..33f826a 100644
--- a/src/lib/eo/eo_base_class.c
+++ b/src/lib/eo/eo_base_class.c
@@ -121,7 +121,7 @@ _parent_set(Eo *obj, void *class_data, va_list *list)
    if (pd->parent == parent_id)
      return ;
 
-   if (eo_composite_is(obj))
+   if (eo_composite_is(obj) && pd->parent)
      {
         eo_composite_detach(obj, pd->parent);
      }

-- 


Reply via email to