Code

Removed C99 isnormal from nr-filter-gaussian.cpp (bug 1678363)
authorkiirala <kiirala@users.sourceforge.net>
Mon, 2 Apr 2007 08:40:49 +0000 (08:40 +0000)
committerkiirala <kiirala@users.sourceforge.net>
Mon, 2 Apr 2007 08:40:49 +0000 (08:40 +0000)
src/display/nr-filter-gaussian.cpp

index dc183ec47b79de594b13fe9f4ee2c978960b1dca..ace41171d967facef80b30cb83d7f1fee5572e9f 100644 (file)
@@ -19,7 +19,7 @@
 #include <glib.h>
 #include <limits>
 
-#include "isnormal.h"
+#include "isnan.h"
 
 #include "display/nr-filter-primitive.h"
 #include "display/nr-filter-gaussian.h"
@@ -752,14 +752,14 @@ int FilterGaussian::get_enlarge(Matrix const &trans)
 
 void FilterGaussian::set_deviation(double deviation)
 {
-    if(isnormal(deviation) && deviation >= 0) {
+    if(isFinite(deviation) && deviation >= 0) {
         _deviation_x = _deviation_y = deviation;
     }
 }
 
 void FilterGaussian::set_deviation(double x, double y)
 {
-    if(isnormal(x) && x >= 0 && isnormal(y) && y >= 0) {
+    if(isFinite(x) && x >= 0 && isFinite(y) && y >= 0) {
         _deviation_x = x;
         _deviation_y = y;
     }