mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
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:
parent
e92fa499d2
commit
954520c22d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user