summaryrefslogtreecommitdiffhomepage
path: root/qfunctionconfigurator/functionconfig.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qfunctionconfigurator/functionconfig.cpp')
-rw-r--r--qfunctionconfigurator/functionconfig.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qfunctionconfigurator/functionconfig.cpp b/qfunctionconfigurator/functionconfig.cpp
index 7edbe0ef..264097ab 100644
--- a/qfunctionconfigurator/functionconfig.cpp
+++ b/qfunctionconfigurator/functionconfig.cpp
@@ -8,6 +8,7 @@
#include <QSettings>
#include <QPixmap>
#include <algorithm>
+#include <cmath>
void Map::setTrackingActive(bool blnActive)
{
@@ -43,7 +44,7 @@ bool Map::getLastPoint(QPointF& point ) {
float Map::getValueInternal(int x) {
float sign = x < 0 ? -1 : 1;
- x = std::abs(x);
+ x = abs(x);
float ret;
int sz = cur.data.size();
if (sz == 0)