double
alpha,
beta,
+ coordinates,
radius;
alpha=bounds.x2-bounds.x1;
beta=bounds.y2-bounds.y1;
radius=hypot((double) alpha,(double) beta);
+ coordinates=ceil(MagickPI*MagickPI*radius)+6*BezierQuantum+360;
+ if (coordinates > 21438)
+ {
+ (void) ThrowMagickException(exception,GetMagickModule(),DrawError,
+ "TooManyBezierCoordinates","`%s'",token);
+ status=MagickFalse;
+ break;
+ }
points_extent*=5;
- points_extent+=2*ceil((double) MagickPI*radius)+6*BezierQuantum+360;
+ points_extent+=2*coordinates;
break;
}
case BezierPrimitive:
status=MagickFalse;
break;
}
- points_extent=coordinates;
+ points_extent=2*coordinates;
break;
}
case EllipsePrimitive: