]> granicus.if.org Git - imagemagick/commitdiff
Fixed checking ReadMask.
authordirk <dirk@git.imagemagick.org>
Thu, 4 Sep 2014 21:03:28 +0000 (21:03 +0000)
committerdirk <dirk@git.imagemagick.org>
Thu, 4 Sep 2014 21:03:28 +0000 (21:03 +0000)
MagickCore/effect.c

index 697cf8b6bf35e74134e2d258652719cdbd08ab42..2608e976da76389e871b214884ffe631b47a2fc1 100644 (file)
@@ -3423,7 +3423,7 @@ MagickExport Image *UnsharpMaskImage(const Image *image,const double radius,
             (unsharp_traits == UndefinedPixelTrait))
           continue;
         if (((unsharp_traits & CopyPixelTrait) != 0) ||
-            (GetPixelReadMask(image,p) != 0))
+            (GetPixelReadMask(image,p) == 0))
           {
             SetPixelChannel(unsharp_image,channel,p[i],q);
             continue;