break;
if (fabs(length) < MagickEpsilon)
{
+ if (fabs(draw_info->dash_pattern[n]) >= MagickEpsilon)
+ n++;
if (fabs(draw_info->dash_pattern[n]) < MagickEpsilon)
n=0;
length=scale*draw_info->dash_pattern[n];
dash_polygon[j].primitive=UndefinedPrimitive;
status&=DrawStrokePolygon(image,clone_info,dash_polygon,exception);
}
- n++;
+ if (fabs(draw_info->dash_pattern[n]) >= MagickEpsilon)
+ n++;
if (fabs(draw_info->dash_pattern[n]) < MagickEpsilon)
n=0;
length=scale*draw_info->dash_pattern[n];