]> granicus.if.org Git - imagemagick/commitdiff
Fix associated alpha handling (#1424)
authorMichel Bouwmans <m.bouwmans@ep-games.eu>
Mon, 17 Dec 2018 16:19:41 +0000 (17:19 +0100)
committerImageMagick <urban-warrior@users.noreply.github.com>
Mon, 17 Dec 2018 16:19:41 +0000 (11:19 -0500)
MagickCore/quantum-import.c

index 253d635ae0e4315a010e954fefa4ede88fa08b2b..b3db3f84c7bef234172738436c187def541af9ee 100644 (file)
@@ -4260,7 +4260,7 @@ MagickExport size_t ImportQuantumPixels(const Image *image,
         q+=GetPixelChannels(image);
       }
     }
-  if (quantum_info->alpha_type == DisassociatedQuantumAlpha)
+  if (quantum_info->alpha_type == AssociatedQuantumAlpha)
     {
       double
         gamma,