From: Cristy Date: Sun, 7 Oct 2018 16:19:59 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.8-13~36 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5c4f2944c0c299832046ad308414daf8087f6f70;p=imagemagick ... --- 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)