mirror of
https://github.com/ImageMagick/ImageMagick.git
synced 2026-05-31 11:18:42 +02:00
Use if statements instead.
This commit is contained in:
+4
-9
@@ -1964,15 +1964,10 @@ static MagickBooleanType WritePNMImage(const ImageInfo *image_info,Image *image,
|
||||
quantum_type=GetQuantumType(image,exception);
|
||||
if (quantum_type == IndexQuantum)
|
||||
{
|
||||
switch (image->colorspace)
|
||||
{
|
||||
case CMYKColorspace:
|
||||
quantum_type=CMYKQuantum;
|
||||
break;
|
||||
case GRAYColorspace:
|
||||
quantum_type=GrayQuantum;
|
||||
break;
|
||||
}
|
||||
if (image->colorspace == CMYKColorspace)
|
||||
quantum_type=CMYKQuantum;
|
||||
else if (image->colorspace == GRAYColorspace)
|
||||
quantum_type=GrayQuantum;
|
||||
}
|
||||
switch (quantum_type)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user