blur_image=CloneImage(image,image->columns,image->rows,MagickTrue,exception);
if (blur_image == (Image *) NULL)
return((Image *) NULL);
- if (fabs(sigma) <= MagickEpsilon)
+ if (fabs(sigma) < MagickEpsilon)
return(blur_image);
if (SetImageStorageClass(blur_image,DirectClass,exception) == MagickFalse)
{
k++;
}
}
- if (fabs(normalize) <= MagickEpsilon)
- normalize=1.0;
+ if (fabs(normalize) < MagickEpsilon)
+ normalize=MagickEpsilon;
normalize=1.0/normalize;
for (k=0; k < (j*j); k++)
kernel[i][k]=normalize*kernel[i][k];
k++;
}
}
- if (fabs(normalize) <= MagickEpsilon)
- normalize=1.0;
+ if (fabs(normalize) < MagickEpsilon)
+ normalize=MagickEpsilon;
normalize=1.0/normalize;
for (k=0; k < (j*j); k++)
kernel[i][k]=normalize*kernel[i][k];
blur_image=CloneImage(image,0,0,MagickTrue,exception);
if (blur_image == (Image *) NULL)
return((Image *) NULL);
- if (fabs(sigma) <= MagickEpsilon)
+ if (fabs(sigma) < MagickEpsilon)
return(blur_image);
if (SetImageStorageClass(blur_image,DirectClass,exception) == MagickFalse)
{
if (wand->debug != MagickFalse)
(void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name);
if ((wand->filter_off != MagickFalse) ||
- (fabs(CurrentContext->pointsize-pointsize) > MagickEpsilon))
+ (fabs(CurrentContext->pointsize-pointsize) >= MagickEpsilon))
{
CurrentContext->pointsize=pointsize;
(void) MvgPrintf(wand,"font-size %g\n",pointsize);
q=CurrentContext->dash_pattern;
for (i=0; i < (ssize_t) n_new; i++)
{
- if (fabs((*p)-(*q)) > MagickEpsilon)
+ if (fabs((*p)-(*q)) >= MagickEpsilon)
{
update=MagickTrue;
break;
if (wand->debug != MagickFalse)
(void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name);
if ((wand->filter_off != MagickFalse) ||
- (fabs(CurrentContext->dash_offset-dash_offset) > MagickEpsilon))
+ (fabs(CurrentContext->dash_offset-dash_offset) >= MagickEpsilon))
{
CurrentContext->dash_offset=dash_offset;
(void) MvgPrintf(wand,"stroke-dashoffset %g\n",dash_offset);
if (wand->debug != MagickFalse)
(void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name);
if ((wand->filter_off != MagickFalse) ||
- (fabs(CurrentContext->stroke_width-stroke_width) > MagickEpsilon))
+ (fabs(CurrentContext->stroke_width-stroke_width) >= MagickEpsilon))
{
CurrentContext->stroke_width=stroke_width;
(void) MvgPrintf(wand,"stroke-width %g\n",stroke_width);