From: Cristy Date: Sat, 19 May 2018 00:41:48 +0000 (-0400) Subject: https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=34013 X-Git-Tag: 7.0.7-34~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2d21ec3023c44db939e849591572dd2115713608;p=imagemagick https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=34013 --- diff --git a/MagickCore/draw.c b/MagickCore/draw.c index 9a745290d..1b1784e44 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c @@ -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)