]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 8 Oct 2014 11:37:05 +0000 (11:37 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 8 Oct 2014 11:37:05 +0000 (11:37 +0000)
MagickCore/channel.c

index 81fcf4d3466d0a3291867971d8ad7b147afca7f0..659b6c1bab4d3b7ec96593299a4ecfb06c0bee34 100644 (file)
@@ -1074,6 +1074,8 @@ MagickExport MagickBooleanType SetImageAlphaChannel(Image *image,
     }
     case DeactivateAlphaChannel:
     {
+      if (image->alpha_trait == UndefinedPixelTrait)
+        status=SetImageAlpha(image,OpaqueAlpha,exception);
       image->alpha_trait=CopyPixelTrait;
       break;
     }