diff --git a/QCR/widgets/controls.h b/QCR/widgets/controls.h index def98dad77a47e54ae30909936d423926551c98b..5b46e8ed188e928128f78ced61a3754b6112fec7 100644 --- a/QCR/widgets/controls.h +++ b/QCR/widgets/controls.h @@ -27,6 +27,7 @@ #include <QSpinBox> #include <QtGlobal> #include <memory> +#include <limits> //! @brief //! Integer-valued [Qt spin box](http://doc.qt.io/qt-5/qspinbox.html) @@ -56,7 +57,8 @@ class QcrDoubleSpinBox : public QcrSingleValue<double>, public QDoubleSpinBox { public: QcrDoubleSpinBox( const QString& name, QcrCell<double>* cell, int nDigits, int nDecimals, - double min = LLONG_MIN, double max = LLONG_MAX, const QString& tooltip = ""); + double min = -std::numeric_limits<double>::infinity(), + double max = std::numeric_limits<double>::infinity(), const QString& tooltip = ""); void setFromCommand(const QString&) override; double doGetValue() const final { return value(); }