diff options
author | Cristy <mikayla-grace@urban-warrior.org> | 2020-01-04 16:56:06 -0500 |
---|---|---|
committer | Cristy <mikayla-grace@urban-warrior.org> | 2020-01-04 16:56:06 -0500 |
commit | a40f74a9993297e41fe34638547ce03427c181fc (patch) | |
tree | dc3a1977b069dfbde8f9e595c12c65db56978894 | |
parent | 7f60fb74226fc4371dd9be4f9804c8ebdff8625e (diff) | |
download | ImageMagick-a40f74a9993297e41fe34638547ce03427c181fc.tar.gz |
https://github.com/rmagick/rmagick/issues/905
-rw-r--r-- | MagickCore/draw.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/MagickCore/draw.c b/MagickCore/draw.c index 18312f0d8..2f814b42b 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c @@ -2908,7 +2908,10 @@ static MagickBooleanType RenderMVGContent(Image *image, StringToDouble(token,&next_token),0.0),1.0); if (token == next_token) ThrowPointExpectedException(token,exception); - graphic_context[n]->fill_alpha*=opacity; + if (graphic_context[n]->compliance == SVGCompliance) + graphic_context[n]->fill_alpha*=opacity; + else + graphic_context[n]->fill_alpha=QuantumRange*opacity; if (graphic_context[n]->fill.alpha != TransparentAlpha) graphic_context[n]->fill.alpha=graphic_context[n]->fill_alpha; else |