Skip to content

Commit

Permalink
Set min field precision even when hidden (Fix #8480)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Aug 29, 2013
1 parent dcd17fd commit 22eec4a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/app/qgsaddattrdialog.cpp
Expand Up @@ -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()
Expand Down

0 comments on commit 22eec4a

Please sign in to comment.