raise on special cases even if imIn->image8

This commit is contained in:
homm 2016-05-06 00:28:13 +03:00
parent d48324bd21
commit babaaf9bbe

View File

@ -326,7 +326,9 @@ ImagingResample(Imaging imIn, int xsize, int ysize, int filter)
if (strcmp(imIn->mode, "P") == 0 || strcmp(imIn->mode, "1") == 0)
return (Imaging) ImagingError_ModeError();
if (imIn->image8) {
if (imIn->type == IMAGING_TYPE_SPECIAL) {
return (Imaging) ImagingError_ModeError();
} else if (imIn->image8) {
ResampleHorizontal = ImagingResampleHorizontal_8bpc;
} else {
switch(imIn->type) {