From 06c363246f2e3e75d6108428d1225ce3f40fc09d Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 6 Oct 2018 20:07:51 -0400 Subject: [PATCH] ... --- MagickCore/draw.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/MagickCore/draw.c b/MagickCore/draw.c index f203362ba..0d3f26199 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c @@ -2888,9 +2888,10 @@ static MagickBooleanType RenderMVGContent(Image *image, StringToDouble(token,&next_token),0.0),1.0); if (token == next_token) ThrowPointExpectedException(token,exception); - graphic_context[n]->fill_alpha*=opacity; + graphic_context[n]->fill_alpha=opacity; if (graphic_context[n]->fill_alpha != OpaqueAlpha) - graphic_context[n]->fill.alpha=graphic_context[n]->fill_alpha; + graphic_context[n]->fill.alpha=QunatumRange* + graphic_context[n]->fill_alpha; break; } if (LocaleCompare("fill-rule",keyword) == 0) @@ -3673,9 +3674,10 @@ static MagickBooleanType RenderMVGContent(Image *image, StringToDouble(token,&next_token),0.0),1.0); if (token == next_token) ThrowPointExpectedException(token,exception); - graphic_context[n]->stroke_alpha*=opacity; + graphic_context[n]->stroke_alpha=opacity; if (graphic_context[n]->stroke_alpha != OpaqueAlpha) - graphic_context[n]->stroke.alpha=graphic_context[n]->stroke_alpha; + graphic_context[n]->stroke.alpha=QuantumRange* + graphic_context[n]->stroke_alpha; break; } if (LocaleCompare("stroke-width",keyword) == 0) -- 2.40.0