summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-10-25 16:18:45 +0100
committerStanislaw Halik <sthalik@misaki.pl>2015-10-25 16:18:45 +0100
commita176bc811bf906b8c6816d0444eac979facf688c (patch)
treeca2610070dbdbc87f0b160bcd14b03534559932f
parentb1f6b8d22bc2bb9129917bce9b1c0fb37a64b5bf (diff)
qfc: drop nan check
Bug cause was different
-rw-r--r--qfunctionconfigurator/functionconfig.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/qfunctionconfigurator/functionconfig.cpp b/qfunctionconfigurator/functionconfig.cpp
index e319b61e..27f3bf40 100644
--- a/qfunctionconfigurator/functionconfig.cpp
+++ b/qfunctionconfigurator/functionconfig.cpp
@@ -75,18 +75,6 @@ static bool sortFn(const QPointF& one, const QPointF& two) {
return one.x() < two.x();
}
-static inline bool nanp(double value)
-{
- return std::isnan(value) || std::isinf(value);
-}
-
-static inline double elide_nan(double value)
-{
- if (nanp(value))
- return -1;
- return value;
-}
-
void Map::reload() {
if (cur.input.size())
{
@@ -144,7 +132,7 @@ void Map::reload() {
(-p0_y + 3. * p1_y - 3. * p2_y + p3_y) * t3);
if (x >= 0 && x < sz)
- data[x] = elide_nan(y);
+ data[x] = y;
}
}