edje: detect when we try to inherit from ourself.

SVN revision: 67472
This commit is contained in:
Cedric BAIL 2012-01-23 15:45:12 +00:00
parent 99b7af6912
commit a5b728d53d
1 changed files with 8 additions and 0 deletions

View File

@ -2242,6 +2242,14 @@ st_collections_group_inherit(void)
progname, file_in, line - 1, parent_name);
exit(-1);
}
if (pc2 == pc)
{
ERR("%s: Error. parse error %s:%i. You are trying to inherit '%s' from itself. That's not possible."
"If there is another group of the same name, you want to inherit from that group and have the"
"same name as that group, there is a trick ! Just put the inherit before the directive that set"
"the name !", progname, file_in, line - 1, parent_name);
exit(-1);
}
if (pc2->data)
{