]> granicus.if.org Git - imagemagick/commitdiff
https://imagemagick.org/discourse-server/viewtopic.php?f=3&t=34675
authorCristy <urban-warrior@imagemagick.org>
Sun, 9 Sep 2018 18:48:29 +0000 (14:48 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sun, 9 Sep 2018 18:48:29 +0000 (14:48 -0400)
MagickCore/composite.c

index d1351ed9ed2c78f1f7a84247bb5244c560d03a9b..25b43670d81e64d9f4d830828d7d007226ed91cd 100644 (file)
@@ -2262,7 +2262,7 @@ MagickExport MagickBooleanType CompositeImage(Image *image,
           }
           case StereoCompositeOp:
           {
-            if ((channel == GreenPixelChannel) || (channel == BluePixelChannel))
+            if (channel == RedPixelChannel)
               pixel=(MagickRealType) GetPixelRed(source_image,p);
             break;
           }