edje: fix scale_set in sub group

SVN revision: 77137
This commit is contained in:
Michael BOUCHAUD 2012-09-27 09:11:21 +00:00
parent 7d2ced81f6
commit f4d71a30e4
2 changed files with 7 additions and 1 deletions

View File

@ -642,3 +642,6 @@
* edje_codegen: added support for externals
2012-09-27 Michael Bouchaud (yoz)
* fix scale_set in sub group

View File

@ -349,12 +349,15 @@ edje_password_show_last_timeout_set(double password_show_last_timeout)
EAPI Eina_Bool
edje_object_scale_set(Evas_Object *obj, double scale)
{
Edje *ed;
Edje *ed, *ged;
Eina_List *l;
ed = _edje_fetch(obj);
if (!ed) return EINA_FALSE;
if (ed->scale == scale) return EINA_TRUE;
ed->scale = FROM_DOUBLE(scale);
EINA_LIST_FOREACH(ed->groups, l, ged)
ged->scale = ed->scale;
edje_object_calc_force(obj);
return EINA_TRUE;
}