From b51bfcadf308627be49b45dff6bffd64a77a0abc Mon Sep 17 00:00:00 2001 From: Cristy Date: Fri, 24 May 2019 19:12:44 -0400 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/1578 --- MagickCore/draw.c | 1 - MagickCore/morphology.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) 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. -- 2.40.0