summaryrefslogtreecommitdiff
path: root/src/lib/edje/edje_calc.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-07-29 10:58:07 -0400
committerCedric BAIL <cedric.bail@free.fr>2019-07-29 11:17:51 -0700
commit895ffd93cc5d9e183420bbedb86ec92f5c7e5369 (patch)
treed57b3863345ee77a48b7f0879dd812545f1f4687 /src/lib/edje/edje_calc.c
parent36ff0a012ce227757331a745fbb437b2097f4e45 (diff)
edje/calc: clamp part calc size to 0
this could previously have been negative @fix Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9431
Diffstat (limited to '')
-rw-r--r--src/lib/edje/edje_calc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/edje/edje_calc.c b/src/lib/edje/edje_calc.c
index f3d31c8502..540efa2bf3 100644
--- a/src/lib/edje/edje_calc.c
+++ b/src/lib/edje/edje_calc.c
@@ -3018,7 +3018,9 @@ _edje_part_recalc_single(Edje *ed,
3018 params->req.x = TO_INT(params->eval.x); 3018 params->req.x = TO_INT(params->eval.x);
3019 params->req.y = TO_INT(params->eval.y); 3019 params->req.y = TO_INT(params->eval.y);
3020 params->req.w = TO_INT(params->eval.w); 3020 params->req.w = TO_INT(params->eval.w);
3021 if (params->req.w < 0) params->req.w = 0;
3021 params->req.h = TO_INT(params->eval.h); 3022 params->req.h = TO_INT(params->eval.h);
3023 if (params->req.h < 0) params->req.h = 0;
3022 3024
3023 /* adjust for min size */ 3025 /* adjust for min size */
3024 _edje_part_recalc_single_min(desc, params, minw, minh, apref); 3026 _edje_part_recalc_single_min(desc, params, minw, minh, apref);