From da10afdf7390c77eaa8af4d616320f42aca5224f Mon Sep 17 00:00:00 2001 From: dirk Date: Sun, 6 Mar 2016 22:44:42 +0100 Subject: [PATCH] Fixed setting the opacity reported in: https://github.com/ImageMagick/ImageMagick/issues/147 --- MagickWand/drawing-wand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MagickWand/drawing-wand.c b/MagickWand/drawing-wand.c index a7b188980..26decd6b3 100644 --- a/MagickWand/drawing-wand.c +++ b/MagickWand/drawing-wand.c @@ -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); } } -- 2.40.0