]> granicus.if.org Git - imagemagick/commitdiff
Fixed incorrect division.
authordirk <dirk@git.imagemagick.org>
Sat, 17 Sep 2016 21:15:46 +0000 (23:15 +0200)
committerdirk <dirk@git.imagemagick.org>
Sat, 17 Sep 2016 21:15:46 +0000 (23:15 +0200)
coders/psd.c

index 65dc4e8f3a91c760030cfe901e9b22c99ca3fd26..9e6878dbd7c8239b842267b64839a50f435513f7 100644 (file)
@@ -400,7 +400,7 @@ static MagickBooleanType ApplyPSDLayerOpacity(Image *image,Quantum opacity,
           opacity),q);
       else if (opacity > 0)
         SetPixelAlpha(image,(Quantum) (QuantumRange*(GetPixelAlpha(image,q)/
-          opacity)),q);
+          (MagickRealType) opacity)),q);
       q+=GetPixelChannels(image);
     }
     if (SyncAuthenticPixels(image,exception) == MagickFalse)