]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 28 Sep 2014 13:45:26 +0000 (13:45 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 28 Sep 2014 13:45:26 +0000 (13:45 +0000)
MagickCore/channel.c
MagickCore/morphology.c

index 57cde8f3d0b3915aa75bce27d60ee9135156dfe9..58cb1578ec0ddada2f29088fec5f407eeb6b6214 100644 (file)
@@ -5,7 +5,7 @@
 %                                                                             %
 %               CCCC  H   H   AAA   N   N  N   N  EEEEE   L                   %
 %              C      H   H  A   A  NN  N  NN  N  E       L                   %
-%              C      HHHHH  AAAAA  N N N  N N N  RRR     L                   %
+%              C      HHHHH  AAAAA  N N N  N N N  EEE     L                   %
 %              C      H   H  A   A  N  NN  N  NN  E       L                   %
 %               CCCC  H   H  A   A  N   N  N   N  EEEEE   LLLLL               %
 %                                                                             %
index 4163839bb12f0f527294cc8bb3cc0dc310b0aabb..4cd450e6424e1308db26327b95413dfa4f02cf9c 100644 (file)
@@ -2710,8 +2710,7 @@ static ssize_t MorphologyPrimitive(const Image *image,Image *morphology_image,
             if ((traits == UndefinedPixelTrait) ||
                 (morphology_traits == UndefinedPixelTrait))
               continue;
-            if (((morphology_traits & CopyPixelTrait) != 0) ||
-                (GetPixelReadMask(image,p+center) == 0))
+            if (GetPixelReadMask(image,p+center) == 0)
               {
                 SetPixelChannel(morphology_image,channel,p[center+i],q);
                 continue;
@@ -2866,8 +2865,7 @@ static ssize_t MorphologyPrimitive(const Image *image,Image *morphology_image,
         if ((traits == UndefinedPixelTrait) ||
             (morphology_traits == UndefinedPixelTrait))
           continue;
-        if (((morphology_traits & CopyPixelTrait) != 0) ||
-            (GetPixelReadMask(image,p+center) == 0))
+        if (GetPixelReadMask(image,p+center) == 0)
           {
             SetPixelChannel(morphology_image,channel,p[center+i],q);
             continue;