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.bail@samsung.com>
This commit is contained in:
Vyacheslav Reutskiy 2014-02-07 12:16:01 +09:00 committed by Cedric BAIL
parent ec41f67be4
commit 793a1a5c1c
1 changed files with 6 additions and 3 deletions

View File

@ -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
{