From 658757dbbcb080590c928111d5bfab7b903bae0f Mon Sep 17 00:00:00 2001 From: stv Date: Wed, 18 Jan 2006 07:40:48 +0000 Subject: [PATCH] Wrong initial min/max limits. --- src/Qtx/QtxDblSpinBox.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Qtx/QtxDblSpinBox.cxx b/src/Qtx/QtxDblSpinBox.cxx index 081259255..b10c28bd6 100755 --- a/src/Qtx/QtxDblSpinBox.cxx +++ b/src/Qtx/QtxDblSpinBox.cxx @@ -25,6 +25,8 @@ #include #include +#include + /* Class: QtxDblSpinBox::Validator [internal] Descr: Validator for QtxDblSpinBox (getted from Trolltech Qt - SpinBoxValidator) @@ -93,10 +95,10 @@ myCleared( false ), myBlocked( false ), myPrecision( 0 ) { - myMin = QRangeControl::minValue(); - myMax = QRangeControl::maxValue(); + myMin = -DBL_MAX; + myMax = DBL_MAX; myStep = QRangeControl::lineStep(); - myValue = myMin; + myValue = 0; setValidator( new Validator( this, "double_spinbox_validator" ) ); rangeChange(); updateDisplay(); -- 2.39.2