]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 7 Jul 2011 00:23:46 +0000 (00:23 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 7 Jul 2011 00:23:46 +0000 (00:23 +0000)
MagickCore/colorspace.c

index 4c1e1778c48f0f0bb5530ed0e1690fda0421e5d7..ae59e9434860d3cc1a736218797bcd8b4ff0bb5b 100644 (file)
@@ -1230,11 +1230,7 @@ MagickExport MagickBooleanType TransformImageColorspace(Image *image,
   if (image->debug != MagickFalse)
     (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
   if (colorspace == UndefinedColorspace)
-    {
-      if (SetImageColorspace(image,colorspace) == MagickFalse)
-        return(MagickFalse);
-      return(MagickTrue);
-    }
+    return(SetImageColorspace(image,colorspace));
   if (image->colorspace == colorspace)
     return(MagickTrue);
   if ((colorspace == RGBColorspace) ||