From 2d21ec3023c44db939e849591572dd2115713608 Mon Sep 17 00:00:00 2001 From: Cristy Date: Fri, 18 May 2018 20:41:48 -0400 Subject: [PATCH] https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=34013 --- MagickCore/draw.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) -- 2.40.0