Cannot load PSD files with missing channels
description
The attached psd file includes four layers. The second layer named "ACAD_0" has only of two channels with codes -1 and 0. The plugin doesn't check the channel count of the layer and tries to access other channels in the function SetPDNColor:
case PsdColorMode.RGB:
dstPixel->R = channels[0].ImageData[pos];
dstPixel->G = channels[1].ImageData[pos];
dstPixel->B = channels[2].ImageData[pos];
break;
Accessing channels[1] rises the out of range exception.
I can open the attached file in Photoshop and GIMP without problems.