From 287da0ac097045639929150965c50d207431ebff Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 1 Apr 2018 08:29:08 -0400 Subject: [PATCH] ... --- MagickCore/draw.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/MagickCore/draw.c b/MagickCore/draw.c index 26dd1d9ce..52cb1021c 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c @@ -3115,7 +3115,6 @@ MagickExport MagickBooleanType DrawImage(Image *image,const DrawInfo *draw_info, break; } case CirclePrimitive: - case ArcPrimitive: { PointInfo degrees; @@ -3126,6 +3125,20 @@ MagickExport MagickBooleanType DrawImage(Image *image,const DrawInfo *draw_info, primitive_info[j+1].point,degrees); break; } + case ArcPrimitive: + { + PointInfo + center, + radii; + + center.x=0.5*(primitive_info[j+1].point.x+primitive_info[j].point.x); + center.y=0.5*(primitive_info[j+1].point.y+primitive_info[j].point.y); + radii.x=fabs(center.x-primitive_info[j].point.x); + radii.y=fabs(center.y-primitive_info[j].point.y); + coordinates=GetEllipseCoordinates(center,radii, + primitive_info[j+2].point); + break; + } case EllipsePrimitive: { coordinates=GetEllipseCoordinates(primitive_info[j].point, -- 2.40.0