From f3fe8ecfe0b6aa3439ad9898a03bc4ff98bdf68f Mon Sep 17 00:00:00 2001 From: Cristy Date: Mon, 30 Apr 2018 19:29:43 -0400 Subject: [PATCH] ... --- MagickCore/draw.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MagickCore/draw.c b/MagickCore/draw.c index 95cbd06d9..8706a5bc4 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c @@ -777,8 +777,9 @@ static PathInfo *ConvertPrimitiveToPath(const PrimitiveInfo *primitive_info) /* Eliminate duplicate points. */ - if ((code == MoveToCode) || (fabs(q.x-primitive_info[i].point.x) >= DrawEpsilon) || - (fabs(q.y-primitive_info[i].point.y) >= DrawEpsilon)) + if ((code == MoveToCode) || (coordinates <= 0) || + (fabs(q.x-primitive_info[i].point.x) > DrawEpsilon) || + (fabs(q.y-primitive_info[i].point.y) > DrawEpsilon)) { path_info[n].code=code; path_info[n].point=primitive_info[i].point; -- 2.40.0