edje_cc should throw errors when inheriting a part from the same part

This commit is contained in:
Mike Blumenkrantz 2014-05-13 11:15:02 -04:00
parent 966f72f680
commit 800bcde9d7
1 changed files with 5 additions and 0 deletions

View File

@ -4251,6 +4251,11 @@ st_collections_group_parts_part_inherit(void)
const char *pname;
if (strcmp(pc->parts[i]->name, name)) continue;
if (pc->parts[i] == current_part)
{
ERR("Cannot inherit from same part '%s' in group '%s'", name, current_de->entry);
exit(-1);
}
pname = current_part->name;
current_part->name = NULL;
current_part = _part_free(current_part);