]> granicus.if.org Git - imagemagick/commitdiff
Does not close path for linejoins of round
authorCristy <urban-warrior@imagemagick.org>
Thu, 15 Dec 2016 16:38:31 +0000 (11:38 -0500)
committerCristy <urban-warrior@imagemagick.org>
Thu, 15 Dec 2016 16:38:31 +0000 (11:38 -0500)
ChangeLog
MagickCore/draw.c

index 21a6dfbd44fc55ae417439821050599c9c1a7e77..090c1efc70e841235f348234655125bce565b43a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,8 @@
 2016-12-14  7.0.4-0 Cristy  <quetzlzacatenango@image...>
  * Lazily evaluate the image storage class and colorspace to prevent cache 
    allocation when pinging an image.
+ * Does not close path for linejoins of round (reference
+   https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=31039).
 
 2016-12-10  7.0.3-10 Cristy  <quetzlzacatenango@image...>
   * Release ImageMagick version 7.0.3-10, GIT revision 19191:338f088:20161210.
index ae3f38ff9300ae09d69181dd6f11895c88f0a901..86bd24ca1b975d177c4a316c679b18e2262f3ad8 100644 (file)
@@ -6005,8 +6005,8 @@ static PrimitiveInfo *TraceStrokePolygon(const DrawInfo *draw_info,
     (fabs(primitive_info[number_vertices-1].point.x-primitive_info[0].point.x) < DrawEpsilon) &&
     (fabs(primitive_info[number_vertices-1].point.y-primitive_info[0].point.y) < DrawEpsilon) ?
     MagickTrue : MagickFalse;
-  if ((draw_info->linejoin == RoundJoin) ||
-      ((draw_info->linejoin == MiterJoin) && (closed_path != MagickFalse)))
+  if (((draw_info->linejoin == RoundJoin) ||
+       (draw_info->linejoin == MiterJoin)) && (closed_path != MagickFalse))
     {
       polygon_primitive[number_vertices]=primitive_info[1];
       number_vertices++;