summaryrefslogtreecommitdiff
path: root/src/lib/edje/edje_calc.c
diff options
context:
space:
mode:
authorShinwoo Kim <cinoo.kim@samsung.com>2019-03-06 10:41:45 +0000
committerCedric BAIL <cedric.bail@free.fr>2019-03-06 11:34:49 -0800
commit1f7d7d06065e1865f32bbb499efe7ed1037520ae (patch)
tree6f9ae701e23636b97aeccf4f8875c70d17d6db3b /src/lib/edje/edje_calc.c
parenta43fb3c203cea7a49d54005651ff4662d11ec023 (diff)
edje_calc: add ERR message to find out incorrect size problem
When I amended https://phab.enlightenment.org/D7842 I removed line to handle negative value size of params final in _edje_part_pixel_adjust. Because It was not related to the what the commit wants to fix, and I could not find the case making param final size value negative , although I got the negative value when I tested on a specific case. Now it seems that the negative value is telling me "Witness Me!". So I would like to add this change, and never let me forget the issue. Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D8105
Diffstat (limited to '')
-rw-r--r--src/lib/edje/edje_calc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/edje/edje_calc.c b/src/lib/edje/edje_calc.c
index 140ed449ec..ffb46c075b 100644
--- a/src/lib/edje/edje_calc.c
+++ b/src/lib/edje/edje_calc.c
@@ -2447,6 +2447,9 @@ _edje_part_pixel_adjust(Edje *ed,
2447 } 2447 }
2448 } 2448 }
2449 2449
2450 if (params->final.w < 0 || params->final.h < 0)
2451 ERR("The params final size became negative");
2452
2450} 2453}
2451 2454
2452static void 2455static void