edje - fix check return of _edje_fetch

fixes CID 1381326
This commit is contained in:
Carsten Haitzler 2017-09-28 11:30:28 +09:00
parent bee7bf5767
commit 22466b991c
1 changed files with 6 additions and 5 deletions

View File

@ -840,11 +840,12 @@ _edje_part_description_apply(Edje *ed, Edje_Real_Part *ep, const char *d1, doubl
(((pmin->w == pmax->w) && (pmin->h == pmax->h) && (pmin->w > 0) && (pmin->h > 0)) && (((pmin->w == pmax->w) && (pmin->h == pmax->h) && (pmin->w > 0) && (pmin->h > 0)) &&
(((min->w != max->w) || (min->h != max->h) || (min->w <= 0) || (min->h <= 0))))) (((min->w != max->w) || (min->h != max->h) || (min->w <= 0) || (min->h <= 0)))))
{ {
Edje *ted; Edje *ted = _edje_fetch(ep->typedata.swallow->swallowed_object);
if (ted)
ted = _edje_fetch(ep->typedata.swallow->swallowed_object); {
ted->recalc_call = ted->dirty = ted->recalc_hints = EINA_TRUE; ted->recalc_call = ted->dirty = ted->recalc_hints = EINA_TRUE;
_edje_recalc(ted); _edje_recalc(ted);
}
} }
edje_object_mirrored_set(ep->typedata.swallow->swallowed_object, edje_object_mirrored_set(ep->typedata.swallow->swallowed_object,