forked from enlightenment/efl
edje_cc should throw errors when inheriting a part from the same part
This commit is contained in:
parent
966f72f680
commit
800bcde9d7
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue