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
This commit is contained in:
Shinwoo Kim 2019-03-06 10:41:45 +00:00 committed by Cedric BAIL
parent a43fb3c203
commit 1f7d7d0606
1 changed files with 3 additions and 0 deletions

View File

@ -2447,6 +2447,9 @@ _edje_part_pixel_adjust(Edje *ed,
}
}
if (params->final.w < 0 || params->final.h < 0)
ERR("The params final size became negative");
}
static void