edje_cc: Not reset inherit_script during group inherit

If group inherits after setting "inherit_script: 1;", inherit_script
is overwritten by the value of parent group. However, inherit_script
indicates user wants to inherit script in this context, it should not
be initialized as false.
This commit is contained in:
Jeeyong Um 2017-11-21 23:51:21 +09:00
parent cf24e714ea
commit eeb2809d9e
1 changed files with 2 additions and 1 deletions

View File

@ -5034,7 +5034,8 @@ st_collections_group_inherit(void)
pcp = (Edje_Part_Collection_Parser *)pc;
pcp2 = (Edje_Part_Collection_Parser *)pc2;
pcp->default_mouse_events = pcp2->default_mouse_events;
pcp->inherit_script = pcp2->inherit_script;
if (pcp2->inherit_script)
pcp->inherit_script = pcp2->inherit_script;
/* as of 7 April 2014, target groups cannot be modified and are not freed.
* this code will break if that ever changes.