evas/evas_object_smart - revert 65482 but more bracket added

SVN revision: 65485
This commit is contained in:
ChunEon Park 2011-11-21 14:28:54 +00:00
parent 4df374b0f4
commit 33b8560d38
1 changed files with 2 additions and 1 deletions

View File

@ -146,7 +146,8 @@ evas_object_smart_member_add(Evas_Object *obj, Evas_Object *smart_obj)
abort();
return;
}
if (obj->layer->evas != smart_obj->layer->evas)
if ((obj->layer && smart_obj->layer) &&
(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();