diff options
author | Jonathan Liu | 2016-12-26 14:22:49 +1100 |
---|---|---|
committer | Jonathan Liu | 2016-12-26 16:19:47 +1100 |
commit | 58293469f6dffd36413386a8d1ab83c6b92d4559 (patch) | |
tree | 1b46cdc7fd5a2b9544a22c11113e89935616314a /cpp11_abs.patch | |
parent | 51cdfcc80b4bc98a8d662a2e8ae792a7999d8573 (diff) | |
download | aur-58293469f6dffd36413386a8d1ab83c6b92d4559.tar.gz |
Update to 2016.12-1
Diffstat (limited to 'cpp11_abs.patch')
-rw-r--r-- | cpp11_abs.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/cpp11_abs.patch b/cpp11_abs.patch new file mode 100644 index 000000000000..6078b92c4c9c --- /dev/null +++ b/cpp11_abs.patch @@ -0,0 +1,21 @@ +diff -Naur meshlab.orig/src/meshlabplugins/edit_quality/eqhandle.cpp meshlab/src/meshlabplugins/edit_quality/eqhandle.cpp +--- meshlab.orig/src/meshlabplugins/edit_quality/eqhandle.cpp 2016-10-30 14:07:42.211338698 +0100 ++++ meshlab/src/meshlabplugins/edit_quality/eqhandle.cpp 2016-10-30 14:08:26.774164177 +0100 + +@@ -30,6 +30,7 @@ + #include "eqhandle.h" + #include <QMouseEvent> + #include <QGraphicsSceneMouseEvent> ++#include "math.h" /* fabs() */ + + EqHandle::EqHandle(CHART_INFO *environment_info, QColor color, QPointF position, + EQUALIZER_HANDLE_TYPE type, EqHandle** handles, qreal* midHandlePercentilePosition, QDoubleSpinBox* spinbox, +@@ -83,7 +83,7 @@ + setCursor(Qt::OpenHandCursor); + + QPointF newPos = event->scenePos(); +- qreal handleOffset = abs(newPos.x()-pos().x()); ++ qreal handleOffset = fabs(newPos.x()-pos().x()); + + if (handleOffset >= std::numeric_limits<float>::epsilon()) + { |