From: Cristy Date: Sun, 7 Oct 2018 00:11:43 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.8-13~41 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=98fdb67587cf41a64ef5d3166dd152710db77468;p=imagemagick ... --- diff --git a/MagickCore/draw.c b/MagickCore/draw.c index 0d3f26199..d29aef379 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c @@ -2890,8 +2890,8 @@ static MagickBooleanType RenderMVGContent(Image *image, ThrowPointExpectedException(token,exception); graphic_context[n]->fill_alpha=opacity; if (graphic_context[n]->fill_alpha != OpaqueAlpha) - graphic_context[n]->fill.alpha=QunatumRange* - graphic_context[n]->fill_alpha; + graphic_context[n]->fill.alpha=ClampToQuantum(QuantumRange* + graphic_context[n]->fill_alpha); break; } if (LocaleCompare("fill-rule",keyword) == 0) @@ -3676,8 +3676,8 @@ static MagickBooleanType RenderMVGContent(Image *image, ThrowPointExpectedException(token,exception); graphic_context[n]->stroke_alpha=opacity; if (graphic_context[n]->stroke_alpha != OpaqueAlpha) - graphic_context[n]->stroke.alpha=QuantumRange* - graphic_context[n]->stroke_alpha; + graphic_context[n]->stroke.alpha=ClampToQuantum(QuantumRange* + graphic_context[n]->stroke_alpha); break; } if (LocaleCompare("stroke-width",keyword) == 0)