edje: don't update edje calc cache state when only one direction was computed.

SVN revision: 67762
This commit is contained in:
Cedric BAIL 2012-02-08 14:20:29 +00:00
parent 6c31fcf709
commit 26c7ebd1e7
2 changed files with 10 additions and 2 deletions

View File

@ -322,3 +322,9 @@
* Added edje_object_markup_filter_callback_{add,del,del_full}.
These let you append(delete) markup filter functions for filtering
inserted text.
2012-02-08 Cedric Bail
* Fix bug when using EDJE_CALC_CACHE and using relative to x and y
on separate part.

View File

@ -2449,7 +2449,8 @@ _edje_part_recalc(Edje *ed, Edje_Real_Part *ep, int flags, Edje_Calc_Params *sta
p1, pos);
#ifdef EDJE_CALC_CACHE
ep->param1.state = ed->state;
if (flags == FLAG_XY)
ep->param1.state = ed->state;
#endif
}
}
@ -2501,7 +2502,8 @@ _edje_part_recalc(Edje *ed, Edje_Real_Part *ep, int flags, Edje_Calc_Params *sta
confine_to,
p2, pos);
#ifdef EDJE_CALC_CACHE
ep->param2->state = ed->state;
if (flags == FLAG_XY)
ep->param2->state = ed->state;
#endif
}