]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 10 Dec 2011 03:07:36 +0000 (03:07 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 10 Dec 2011 03:07:36 +0000 (03:07 +0000)
MagickCore/fx.c

index f60a7e24f6cc46045c01ce1f9d3853716f09d8c3..390ea7a3b401ee7e1e9150ddf01134ab33e6e3f1 100644 (file)
@@ -4275,10 +4275,10 @@ MagickExport Image *ShadowImage(const Image *image,const double opacity,
   (void) SetImageBackgroundColor(border_image,exception);
   channel_mask=SetPixelChannelMask(border_image,AlphaChannel);
   shadow_image=BlurImage(border_image,0.0,sigma,bias,exception);
-  (void) SetPixelChannelMapMask(border_image,channel_mask);
   border_image=DestroyImage(border_image);
   if (shadow_image == (Image *) NULL)
     return((Image *) NULL);
+  (void) SetPixelChannelMapMask(shadow_image,channel_mask);
   if (shadow_image->page.width == 0)
     shadow_image->page.width=shadow_image->columns;
   if (shadow_image->page.height == 0)