edje/edje_edit: fix part add bug

Summary:
Invert the check of the ed->file. If the ed->file is NULL then return
EINA_FALSE.

@fix

Reviewers: raster, cedric, seoz

CC: cedric

Differential Revision: https://phab.enlightenment.org/D603

Signed-off-by: Cedric BAIL <cedric.bail@samsung.com>
This commit is contained in:
Vyacheslav Reutskiy 2014-03-06 18:22:15 +09:00 committed by Cedric BAIL
parent 2a1c6e02fb
commit b749565278
1 changed files with 1 additions and 1 deletions

View File

@ -2193,7 +2193,7 @@ _edje_edit_real_part_add(Evas_Object *obj, const char *name, Edje_Part_Type type
if (_edje_real_part_get(ed, name))
return EINA_FALSE;
if (ed->file) return EINA_FALSE;
if (!ed->file) return EINA_FALSE;
ce = eina_hash_find(ed->file->collection, ed->group);