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
parent e92fa499d2
commit 954520c22d

View File

@ -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;