]> granicus.if.org Git - imagemagick/commitdiff
https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=34013
authorCristy <urban-warrior@imagemagick.org>
Sat, 19 May 2018 00:41:48 +0000 (20:41 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sat, 19 May 2018 00:41:48 +0000 (20:41 -0400)
MagickCore/draw.c

index 9a745290d4521eef602831174e40b0757e6ef2b8..1b1784e44fb4b1d04b0df3978bb3dd8f29439421 100644 (file)
@@ -3851,9 +3851,10 @@ MagickExport MagickBooleanType DrawImage(Image *image,const DrawInfo *draw_info,
               t++;
               continue;
             }
+          if (strspn(t,"AaCcQqSsTt") != 0)
+            coordinates+=(6*BezierQuantum)+360;
           coordinates++;
         }
-        coordinates*=(6*BezierQuantum)+360;
         break;
       }
       case CirclePrimitive:
@@ -6285,7 +6286,7 @@ static size_t TracePath(PrimitiveInfo *primitive_info,const char *path,
         do
         {
           GetNextToken(p,&p,MagickPathExtent,token);
-          if ((i != 0) && (*token == ','))
+          if (*token == ',')
             GetNextToken(p,&p,MagickPathExtent,token);
           x=StringToDouble(token,&next_token);
           if (token == next_token)