From 98fdb67587cf41a64ef5d3166dd152710db77468 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 6 Oct 2018 20:11:43 -0400 Subject: [PATCH] ... --- MagickCore/draw.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) -- 2.40.0