Fix KDoubleSpinBox initialization problem

(cherry picked from commit 4443b6dd88)
v3.5.13-sru
Timothy Pearson 12 years ago committed by Slávek Banko
parent bb2a1e349f
commit c39ab1452d

@ -1099,7 +1099,6 @@ double KDoubleSpinBox::minValue() const {
void KDoubleSpinBox::setMinValue( double value ) { void KDoubleSpinBox::setMinValue( double value ) {
bool ok = false; bool ok = false;
int min = d->mapToInt( value, &ok ); int min = d->mapToInt( value, &ok );
if ( !ok ) return;
base::setMinValue( min ); base::setMinValue( min );
updateValidator(); updateValidator();
} }
@ -1112,7 +1111,6 @@ double KDoubleSpinBox::maxValue() const {
void KDoubleSpinBox::setMaxValue( double value ) { void KDoubleSpinBox::setMaxValue( double value ) {
bool ok = false; bool ok = false;
int max = d->mapToInt( value, &ok ); int max = d->mapToInt( value, &ok );
if ( !ok ) return;
base::setMaxValue( max ); base::setMaxValue( max );
updateValidator(); updateValidator();
} }

Loading…
Cancel
Save