From 5c4f2944c0c299832046ad308414daf8087f6f70 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 7 Oct 2018 12:19:59 -0400 Subject: [PATCH] ... --- MagickCore/draw.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/MagickCore/draw.c b/MagickCore/draw.c index 537ea992b..c50aa3303 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c @@ -2868,8 +2868,11 @@ static MagickBooleanType RenderMVGContent(Image *image, if (token == next_token) ThrowPointExpectedException(token,exception); graphic_context[n]->fill_alpha*=opacity; - if (graphic_context[n]->fill_alpha != OpaqueAlpha) + if (graphic_context[n]->fill.alpha != TransparentAlpha) graphic_context[n]->fill.alpha=graphic_context[n]->fill_alpha; + else + graphic_context[n]->fill.alpha=ClampToQuantum(QuantumRange* + opacity); break; } if (LocaleCompare("fill-rule",keyword) == 0) @@ -3653,8 +3656,11 @@ static MagickBooleanType RenderMVGContent(Image *image, if (token == next_token) ThrowPointExpectedException(token,exception); graphic_context[n]->stroke_alpha*=opacity; - if (graphic_context[n]->stroke_alpha != OpaqueAlpha) + if (graphic_context[n]->stroke.alpha != TransparentAlpha) graphic_context[n]->stroke.alpha=graphic_context[n]->stroke_alpha; + else + graphic_context[n]->stroke.alpha=ClampToQuantum(QuantumRange* + opacity); break; } if (LocaleCompare("stroke-width",keyword) == 0) -- 2.40.0