]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 17 Jan 2015 14:02:04 +0000 (14:02 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 17 Jan 2015 14:02:04 +0000 (14:02 +0000)
MagickCore/channel.c

index 5a5c68077a288f8a30c20f5eaa5e88ac4b2229f7..c64b3561ccc5d4f6043404e976c262880ea79647 100644 (file)
@@ -1155,7 +1155,8 @@ MagickExport MagickBooleanType SetImageAlphaChannel(Image *image,
     }
     case OnAlphaChannel:
     {
-      status=SetImageAlpha(image,OpaqueAlpha,exception);
+      if (image->alpha_trait == UndefinedPixelTrait)
+        status=SetImageAlpha(image,OpaqueAlpha,exception);
       image->alpha_trait=BlendPixelTrait;
       break;
     }