summaryrefslogtreecommitdiff
path: root/src/lib/edje/edje_calc.c
diff options
context:
space:
mode:
authorWooHyun Jung <wh0705.jung@samsung.com>2020-02-14 10:38:24 +0900
committerWooHyun Jung <wh0705.jung@samsung.com>2020-02-14 10:38:24 +0900
commitfe7a7fa3af732103dd8afd7a11b131d2d10e4314 (patch)
treea57c1b8e85ea64112d3ef4b90d5f4a88bd3c06b9 /src/lib/edje/edje_calc.c
parent651517808cfd7ec2743b23ccc17d1473abc61393 (diff)
edje_calc: add null checking and remove unreachable code
Diffstat (limited to '')
-rw-r--r--src/lib/edje/edje_calc.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lib/edje/edje_calc.c b/src/lib/edje/edje_calc.c
index 07f25ec02d..4c11f6ab4e 100644
--- a/src/lib/edje/edje_calc.c
+++ b/src/lib/edje/edje_calc.c
@@ -4240,7 +4240,7 @@ _edje_part_recalc(Edje *ed, Edje_Real_Part *ep, int flags, Edje_Calc_Params *sta
4240 } 4240 }
4241 4241
4242 /* Recalc if needed the map center && light source */ 4242 /* Recalc if needed the map center && light source */
4243 if (ep->param1.description->map.on) 4243 if (ep->param1.description && ep->param1.description->map.on)
4244 { 4244 {
4245 center[0] = _edje_real_part_state_get(ed, ep, flags, ep->param1.description->map.rot.id_center, &statec1); 4245 center[0] = _edje_real_part_state_get(ed, ep, flags, ep->param1.description->map.rot.id_center, &statec1);
4246 zoom_center[0] = _edje_real_part_state_get(ed, ep, flags, ep->param1.description->map.zoom.id_center, &statec1); 4246 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
4399 _edje_calc_params_need_ext(p3); 4399 _edje_calc_params_need_ext(p3);
4400 p3->ext->clip_to = p1->ext->clip_to; 4400 p3->ext->clip_to = p1->ext->clip_to;
4401 } 4401 }
4402 else
4403 {
4404 if (p3->ext) p3->ext->clip_to = NULL;
4405 }
4406 } 4402 }
4407 4403
4408 /* and no_render as well */ 4404 /* and no_render as well */