edje_calc: add null checking and remove unreachable code

This commit is contained in:
WooHyun Jung 2020-02-14 10:38:24 +09:00
parent 651517808c
commit fe7a7fa3af
1 changed files with 1 additions and 5 deletions

View File

@ -4240,7 +4240,7 @@ _edje_part_recalc(Edje *ed, Edje_Real_Part *ep, int flags, Edje_Calc_Params *sta
}
/* Recalc if needed the map center && light source */
if (ep->param1.description->map.on)
if (ep->param1.description && ep->param1.description->map.on)
{
center[0] = _edje_real_part_state_get(ed, ep, flags, ep->param1.description->map.rot.id_center, &statec1);
zoom_center[0] = _edje_real_part_state_get(ed, ep, flags, ep->param1.description->map.zoom.id_center, &statec1);
@ -4399,10 +4399,6 @@ _edje_part_recalc(Edje *ed, Edje_Real_Part *ep, int flags, Edje_Calc_Params *sta
_edje_calc_params_need_ext(p3);
p3->ext->clip_to = p1->ext->clip_to;
}
else
{
if (p3->ext) p3->ext->clip_to = NULL;
}
}
/* and no_render as well */