From: Cristy Date: Mon, 8 May 2017 23:43:27 +0000 (-0400) Subject: https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=31862 X-Git-Tag: 7.0.5-6~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=019ee077794137e5db5a99d4a4268544f17f09d3;p=imagemagick https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=31862 --- diff --git a/MagickCore/paint.c b/MagickCore/paint.c index e2d250795..b2dafb3b3 100644 --- a/MagickCore/paint.c +++ b/MagickCore/paint.c @@ -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); }