summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--qfunctionconfigurator/functionconfig.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/qfunctionconfigurator/functionconfig.cpp b/qfunctionconfigurator/functionconfig.cpp
index 6db3b55f..4c52b6eb 100644
--- a/qfunctionconfigurator/functionconfig.cpp
+++ b/qfunctionconfigurator/functionconfig.cpp
@@ -15,7 +15,6 @@
#include <QtAlgorithms>
#include <QSettings>
#include <QPixmap>
-#include <cmath>
#include <algorithm>
void Map::setTrackingActive(bool blnActive)
@@ -49,7 +48,7 @@ bool Map::getLastPoint(QPointF& point ) {
float Map::getValueInternal(int x) {
float sign = x < 0 ? -1 : 1;
- x = fabs(x);
+ x = std::abs((double) x);
float ret;
int sz = data.size();
if (sz == 0)