Hello.

If the radius (stop) of the ellipse is 0 then

    delta=2.0/Max(stop.x,stop.y);

is infinite. This pathch calls TracePoint in
this case.

Also the names of the parameters are strange...

Marko Mahnič

ImageMagick 6.3.0-6 Q8


--- draw.c.orig 2006-10-23 23:02:22.000000000 +0200
+++ draw.c      2006-11-30 16:02:18.718750000 +0100
@@ -4594,10 +4608,16 @@
     i;
 
   /*
     Ellipses are just short segmented polys.
   */
+  if (stop.x == 0 && stop.y == 0)
+  {
+     TracePoint(primitive_info, start);
+     return;
+  }
+
   delta=2.0/Max(stop.x,stop.y);
   step=(MagickRealType) (MagickPI/8.0);
   if (delta < (MagickPI/8.0))
     step=MagickPI/(4*(MagickPI/delta/2+0.5));
   angle.x=DegreesToRadians(degrees.x);
_______________________________________________
Magick-developers mailing list
Magick-developers@imagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick-developers

Reply via email to