]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 14 Jan 2014 16:37:23 +0000 (16:37 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 14 Jan 2014 16:37:23 +0000 (16:37 +0000)
MagickCore/draw.c

index 224c206f00055f4b603e091731d6b7b4d7dbc0a8..56649cad8853a423badedda9bd21e1c45967c1e9 100644 (file)
@@ -549,7 +549,8 @@ static PolygonInfo *ConvertPathToPolygon(
     next_direction=((path_info[i].point.y > point.y) ||
       ((path_info[i].point.y == point.y) &&
        (path_info[i].point.x > point.x))) ? 1 : -1;
-    if ((direction != 0) && (direction != next_direction))
+    if ((points != (PointInfo *) NULL) && (direction != 0) &&
+        (direction != next_direction))
       {
         /*
           New edge.