]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sun, 7 Oct 2018 00:11:43 +0000 (20:11 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sun, 7 Oct 2018 00:11:43 +0000 (20:11 -0400)
MagickCore/draw.c

index 0d3f26199dbbf718e99258a69b23d77c2cb52e77..d29aef37960a92221b79404e636b28e471264c5c 100644 (file)
@@ -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)