diff --git a/src/meshlabplugins/edit_quality/eqhandle.cpp b/src/meshlabplugins/edit_quality/eqhandle.cpp index 364d53bfc..ef3d4a2d5 100644 --- a/src/meshlabplugins/edit_quality/eqhandle.cpp +++ b/src/meshlabplugins/edit_quality/eqhandle.cpp @@ -83,7 +83,7 @@ void EqHandle::mouseMoveEvent(QGraphicsSceneMouseEvent *event) setCursor(Qt::OpenHandCursor); QPointF newPos = event->scenePos(); - qreal handleOffset = abs(newPos.x()-pos().x()); + qreal handleOffset = std::fabs(newPos.x()-pos().x()); if (handleOffset >= std::numeric_limits::epsilon()) {