]> granicus.if.org Git - imagemagick/commitdiff
Fixed setting the opacity reported in: https://github.com/ImageMagick/ImageMagick...
authordirk <dirk@git.imagemagick.org>
Sun, 6 Mar 2016 21:44:42 +0000 (22:44 +0100)
committerdirk <dirk@git.imagemagick.org>
Sun, 6 Mar 2016 21:44:42 +0000 (22:44 +0100)
MagickWand/drawing-wand.c

index a7b188980fcafa88e07f84f3acfd0bbbed9c075e..26decd6b3d88581310d24c1d75d84c4d659c6add 100644 (file)
@@ -4858,7 +4858,7 @@ WandExport void DrawSetOpacity(DrawingWand *wand,const double opacity)
   if ((wand->filter_off != MagickFalse) ||
       (CurrentContext->alpha != quantum_alpha))
     {
-      CurrentContext->alpha=(Quantum) opacity;
+      CurrentContext->alpha=quantum_alpha;
       (void) MVGPrintf(wand,"opacity %.20g\n",opacity);
     }
 }