Skip to content
Permalink
Browse files

Set min field precision even when hidden (Fix #8480)

  • Loading branch information
m-kuhn committed Aug 29, 2013
1 parent dcd17fd commit 22eec4afe831f75f50b19e2c8de9082b76fce662
Showing with 2 additions and 5 deletions.
  1. +2 −5 src/app/qgsaddattrdialog.cpp
@@ -80,11 +80,8 @@ void QgsAddAttrDialog::setPrecisionMinMax()
int minPrecType = mTypeBox->itemData( idx, Qt::UserRole + 4 ).toInt();
int maxPrecType = mTypeBox->itemData( idx, Qt::UserRole + 5 ).toInt();
mPrec->setVisible( minPrecType < maxPrecType );
if ( mPrec->isVisible() )
{
mPrec->setMinimum( minPrecType );
mPrec->setMaximum( qMin( maxPrecType, mLength->value() ) );
}
mPrec->setMinimum( minPrecType );
mPrec->setMaximum( qMin( maxPrecType, mLength->value() ) );
}

void QgsAddAttrDialog::accept()

0 comments on commit 22eec4a

Please sign in to comment.
You can’t perform that action at this time.