From: Cristy Date: Fri, 24 May 2019 23:12:44 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/1578 X-Git-Tag: 7.0.8-47~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b51bfcadf308627be49b45dff6bffd64a77a0abc;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/1578 --- diff --git a/MagickCore/draw.c b/MagickCore/draw.c index 6724e4864..8406cf68c 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c @@ -3713,7 +3713,6 @@ static MagickBooleanType RenderMVGContent(Image *image, if (LocaleCompare("text",keyword) == 0) { primitive_type=TextPrimitive; - cursor=0.0; break; } if (LocaleCompare("text-align",keyword) == 0) diff --git a/MagickCore/morphology.c b/MagickCore/morphology.c index fa5a01bff..cb239cb1d 100644 --- a/MagickCore/morphology.c +++ b/MagickCore/morphology.c @@ -2731,7 +2731,7 @@ static ssize_t MorphologyPrimitive(const Image *image,Image *morphology_image, pixel=bias; gamma=0.0; count=0; - if ((morphology_traits & BlendPixelTrait) == 0) + if ((image->alpha_trait & BlendPixelTrait) == 0) for (v=0; v < (ssize_t) kernel->height; v++) { if (!IsNaN(*k)) @@ -2930,7 +2930,7 @@ static ssize_t MorphologyPrimitive(const Image *image,Image *morphology_image, http://www.cs.umd.edu/~djacobs/CMSC426/Convolution.pdf */ k=(&kernel->values[kernel->width*kernel->height-1]); - if ((morphology_traits & BlendPixelTrait) == 0) + if ((image->alpha_trait & BlendPixelTrait) == 0) { /* No alpha blending.