]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Mon, 16 Feb 2015 23:36:44 +0000 (23:36 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Mon, 16 Feb 2015 23:36:44 +0000 (23:36 +0000)
MagickCore/colorspace.c

index 591777252699bf4764553e569029f44b0e7a95d0..66938c9445bb1456610a557a014e5434194b970e 100644 (file)
@@ -1158,10 +1158,10 @@ MagickExport MagickBooleanType TransformImageColorspace(Image *image,
   if (image->debug != MagickFalse)
     (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
   if (image->colorspace == colorspace)
-    return(MagickTrue);
+    return(SetImageColorspace(image,colorspace,exception));
   if ((image->colorspace == GRAYColorspace) && (image->gamma != 1.0) &&
       (colorspace == sRGBColorspace))
-    return(MagickTrue);
+    return(SetImageColorspace(image,colorspace,exception));
   if (colorspace == UndefinedColorspace)
     return(SetImageColorspace(image,colorspace,exception));
   /*