Bug #10464: Set pixel value to 0 before FindColor()
This commit is contained in:
parent
8f0a4282f0
commit
5d5fcc7198
|
@ -1006,6 +1006,7 @@ FakeAllocColor (ColormapPtr pmap, xColorItem *item)
|
|||
switch (class) {
|
||||
case GrayScale:
|
||||
case PseudoColor:
|
||||
temp = 0;
|
||||
item->pixel = 0;
|
||||
if (FindColor(pmap, pmap->red, entries, &rgb, &temp, PSEUDOMAP,
|
||||
-1, AllComp) == Success) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user