From 3c24743881b44e687a035b4debd35679023bb3f6 Mon Sep 17 00:00:00 2001 From: dirk Date: Mon, 26 Sep 2016 20:34:43 +0200 Subject: [PATCH] Fixed typo. --- coders/psd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coders/psd.c b/coders/psd.c index 5fba21f3c..7d59f44a5 100644 --- a/coders/psd.c +++ b/coders/psd.c @@ -2563,7 +2563,7 @@ static MagickBooleanType WriteImageChannels(const PSDInfo *psd_info, channels=1; if (separate == MagickFalse) { - if (image->storage_class != PseudoClass) + if (next_image->storage_class != PseudoClass) { if (IsImageGray(next_image) == MagickFalse) channels=next_image->colorspace == CMYKColorspace ? 4 : 3; -- 2.50.1