]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 12 Feb 2012 14:49:54 +0000 (14:49 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 12 Feb 2012 14:49:54 +0000 (14:49 +0000)
MagickCore/constitute.c

index 845d489c7abf521167fa6e2098370321cf698c5b..205a0c2d7b763beec0566021c3136cb12b931313 100644 (file)
@@ -647,7 +647,7 @@ MagickExport Image *ReadImage(const ImageInfo *image_info,
       next->magick_columns=next->columns;
     if (next->magick_rows == 0)
       next->magick_rows=next->rows;
-    if ((next->colorspace == sRGBColorspace) || (next->gamma == 1.0))
+    if ((next->colorspace == sRGBColorspace) && (next->gamma == 1.0))
       next->colorspace=RGBColorspace;
     value=GetImageProperty(next,"tiff:Orientation",exception);
     if (value == (char *) NULL)