Added check to 8-bit blender code for null cmap.map to fix blender crash on Linux(p=afranke@ags.uni-sb.de) b=17356 r=attinasi@netscape.com

This commit is contained in:
kmcclusk%netscape.com 2000-08-26 03:19:12 +00:00
Родитель e92fa499d2
Коммит 954520c22d
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -572,6 +572,11 @@ PRUint32 *distbuffer;
PRUint32 quantlevel,tnum,num,shiftnum;
NI_RGB *map;
if (nsnull == aColorMap->cmap.map) {
NS_ASSERTION(PR_FALSE, "NULL Colormap during 8-bit blend");
return;
}
aBlendVal = (aBlendVal*255)/100;
val2 = aBlendVal;
val1 = 255-val2;