]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/1578
authorCristy <mikayla-grace@urban-warrior.org>
Fri, 24 May 2019 23:12:44 +0000 (19:12 -0400)
committerCristy <mikayla-grace@urban-warrior.org>
Fri, 24 May 2019 23:12:44 +0000 (19:12 -0400)
MagickCore/draw.c
MagickCore/morphology.c

index 6724e4864199322c388f43fc8d5608c0cca867e1..8406cf68c00b536ed9cf4ffa9c1a35de30056ab7 100644 (file)
@@ -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)
index fa5a01bff5425f0387df125b079ece2c7d9b6b3e..cb239cb1d03ecd6808c3291ccaa01bb5c4773564 100644 (file)
@@ -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.