* edje: fix rename of a part.

SVN revision: 50684
This commit is contained in:
Cedric BAIL 2010-07-30 09:08:37 +00:00
parent c9d5d8a62e
commit 29893ac71c
1 changed files with 3 additions and 4 deletions

View File

@ -664,7 +664,8 @@ _edje_fix_parts_id(Edje *ed)
//printf(" [%d]Checking part: %s id: %d\n", correct_id, p->name, p->id);
if (p->id != correct_id)
_edje_part_id_set(ed, ed->table_parts[p->id], correct_id);
if (ed->table_parts[p->id])
_edje_part_id_set(ed, ed->table_parts[p->id], correct_id);
correct_id++;
}
@ -1031,13 +1032,11 @@ edje_edit_group_name_set(Evas_Object *obj, const char *new_name)
//if (pc->part && ed->file->free_strings) eina_stringshare_del(pc->part); TODO FIXME
pce = eina_hash_find(ed->file->collection, pc->part);
eina_hash_del(ed->file->collection, pce->entry, pce);
eina_hash_move(ed->file->collection, pce->entry, new_name);
pce->entry = eina_stringshare_add(new_name);
pc->part = pce->entry;
eina_hash_add(ed->file->collection, pce->entry, pce);
return EINA_FALSE;
}