summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f4f438b)
raw | patch | inline | side by side (parent: f4f438b)
author | kiirala <kiirala@users.sourceforge.net> | |
Mon, 2 Apr 2007 08:40:49 +0000 (08:40 +0000) | ||
committer | kiirala <kiirala@users.sourceforge.net> | |
Mon, 2 Apr 2007 08:40:49 +0000 (08:40 +0000) |
src/display/nr-filter-gaussian.cpp | patch | blob | history |
index dc183ec47b79de594b13fe9f4ee2c978960b1dca..ace41171d967facef80b30cb83d7f1fee5572e9f 100644 (file)
#include <glib.h>
#include <limits>
-#include "isnormal.h"
+#include "isnan.h"
#include "display/nr-filter-primitive.h"
#include "display/nr-filter-gaussian.h"
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;
}