]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Mon, 4 Jun 2012 21:26:19 +0000 (21:26 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Mon, 4 Jun 2012 21:26:19 +0000 (21:26 +0000)
MagickCore/effect.c
MagickWand/drawing-wand.c

index 14f3866562149220b8c11e1759cb05085956c894..cd99903fd243bb4844216a7de50fcfb4c1220a6c 100644 (file)
@@ -216,7 +216,7 @@ MagickExport Image *AdaptiveBlurImage(const Image *image,const double radius,
   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)
     {
@@ -271,8 +271,8 @@ MagickExport Image *AdaptiveBlurImage(const Image *image,const double radius,
         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];
@@ -598,8 +598,8 @@ MagickExport Image *AdaptiveSharpenImage(const Image *image,const double radius,
         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];
@@ -905,7 +905,7 @@ MagickExport Image *BlurImage(const Image *image,const double radius,
   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)
     {
index 68eed0d0c8a5ff0f3fde7a509950ff69058a1064..3a12cfef4557fed31b3ec44f34faa28ab4e74ffe 100644 (file)
@@ -5049,7 +5049,7 @@ WandExport void DrawSetFontSize(DrawingWand *wand,const double pointsize)
   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);
@@ -5453,7 +5453,7 @@ WandExport MagickBooleanType DrawSetStrokeDashArray(DrawingWand *wand,
           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;
@@ -5532,7 +5532,7 @@ WandExport void DrawSetStrokeDashOffset(DrawingWand *wand,
   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);
@@ -5743,7 +5743,7 @@ WandExport void DrawSetStrokeWidth(DrawingWand *wand,const double stroke_width)
   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);