fix minor segv in gradient rendering if your color range has err... no colors

SVN revision: 4112
This commit is contained in:
Carsten Haitzler 2001-01-11 22:43:11 +00:00
parent cea6638e08
commit d9dedd7ea6
1 changed files with 1 additions and 0 deletions

View File

@ -197,6 +197,7 @@ __imlib_DrawGradient(ImlibImage *im, int x, int y, int w, int h,
else
len = hh * 16;
map = __imlib_MapRange(rg, len);
if (!map) return;
xx = (int)(32 * sin(((angle + 180) * 2 * 3.141592654) / 360));
yy = -(int)(32 * cos(((angle + 180) * 2 * 3.141592654) / 360));