cedric pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=793a1a5c1cdad1b8a8880c249316e14317b89803
commit 793a1a5c1cdad1b8a8880c249316e14317b89803 Author: Vyacheslav Reutskiy <v.reuts...@samsung.com> Date: Fri Feb 7 12:16:01 2014 +0900 edje: edje_calc - fix deffect by find the part description when 'approximate' is EINA_FALSE Reviewers: cedric, raster, seoz Reviewed By: cedric CC: cedric Differential Revision: https://phab.enlightenment.org/D495 Signed-off-by: Cedric BAIL <cedric.b...@samsung.com> --- src/lib/edje/edje_calc.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/lib/edje/edje_calc.c b/src/lib/edje/edje_calc.c index 5406e58..1a1f0c0 100644 --- a/src/lib/edje/edje_calc.c +++ b/src/lib/edje/edje_calc.c @@ -322,10 +322,13 @@ _edje_part_description_find(Edje *ed, Edje_Real_Part *rp, const char *state_name if (d->state.name && (d->state.name == state_name || !strcmp(d->state.name, state_name))) { - if (!approximate && d->state.value == state_val) + if (!approximate) { - return _edje_get_description_by_orientation(ed, d, - &ep->other.desc_rtl[i], ep->type); + if (d->state.value == state_val) + return _edje_get_description_by_orientation(ed, d, + &ep->other.desc_rtl[i], ep->type); + else + continue; } else { --