From: cedric Date: Mon, 23 Jan 2012 15:45:12 +0000 (+0000) Subject: edje: detect when we try to inherit from ourself. X-Git-Tag: submit/2.0alpha-wayland/20121127.221958~422 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=505be6be79c33710ae2a174c0905ff792a2e859d;p=profile%2Fivi%2Fedje.git edje: detect when we try to inherit from ourself. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@67472 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/bin/edje_cc_handlers.c b/src/bin/edje_cc_handlers.c index f74fa12..5244f6a 100644 --- a/src/bin/edje_cc_handlers.c +++ b/src/bin/edje_cc_handlers.c @@ -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) {