]> granicus.if.org Git - imagemagick/commitdiff
https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=31862
authorCristy <urban-warrior@imagemagick.org>
Mon, 8 May 2017 23:43:27 +0000 (19:43 -0400)
committerCristy <urban-warrior@imagemagick.org>
Mon, 8 May 2017 23:43:27 +0000 (19:43 -0400)
MagickCore/paint.c

index e2d250795f9d7f514dbe0652b1a045205d151d84..b2dafb3b306b86c4110a3b5a7aaa10ca8bbe7503 100644 (file)
@@ -978,13 +978,13 @@ MagickExport MagickBooleanType OpaquePaintImage(Image *image,
           if (image->channel_map[RedPixelChannel].traits == UpdatePixelTrait)
             SetPixelRed(image,conform_fill.red,q);
           if (image->channel_map[GreenPixelChannel].traits == UpdatePixelTrait)
-            SetPixelRed(image,conform_fill.green,q);
+            SetPixelGreen(image,conform_fill.green,q);
           if (image->channel_map[BluePixelChannel].traits == UpdatePixelTrait)
-            SetPixelRed(image,conform_fill.blue,q);
+            SetPixelBlue(image,conform_fill.blue,q);
           if (image->channel_map[BlackPixelChannel].traits == UpdatePixelTrait)
-            SetPixelRed(image,conform_fill.black,q);
+            SetPixelBlack(image,conform_fill.black,q);
           if (image->channel_map[AlphaPixelChannel].traits == UpdatePixelTrait)
-            SetPixelRed(image,conform_fill.alpha,q);
+            SetPixelAlpha(image,conform_fill.alpha,q);
         }
       q+=GetPixelChannels(image);
     }