From 474625c4b4c700deb2dbffaddb0dfab5e8725d00 Mon Sep 17 00:00:00 2001 From: hermet Date: Mon, 21 Nov 2011 10:16:25 +0000 Subject: [PATCH] evas/evas_object_smart - don't need compare each layer git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@65482 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/canvas/evas_object_smart.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/canvas/evas_object_smart.c b/src/lib/canvas/evas_object_smart.c index e5c390f..17ef1a5 100644 --- a/src/lib/canvas/evas_object_smart.c +++ b/src/lib/canvas/evas_object_smart.c @@ -146,8 +146,7 @@ evas_object_smart_member_add(Evas_Object *obj, Evas_Object *smart_obj) abort(); return; } - if (obj->layer && smart_obj->layer - && obj->layer->evas != smart_obj->layer->evas) + if (obj->layer->evas != smart_obj->layer->evas) { CRIT("Adding object %p from Evas (%p) from another Evas (%p)", obj, obj->layer->evas, smart_obj->layer->evas); abort(); -- 2.7.4