Skip to content
Permalink
Browse files

when adding new field apply precision only when field type supports it

  • Loading branch information
alexbruy committed Jul 9, 2020
1 parent eaedff3 commit 1531cdb23d8e1fee809afaef608e6b0f61178bf1
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/qgsaddattrdialog.cpp
@@ -138,7 +138,7 @@ QgsField QgsAddAttrDialog::field() const
( QVariant::Type ) mTypeBox->currentData( Qt::UserRole ).toInt(),
mTypeBox->currentData( Qt::UserRole + 1 ).toString(),
mLength->value(),
mPrec->value(),
mPrec->isVisible() ? mPrec->value() : 0,
mCommentEdit->text(),
static_cast<QVariant::Type>( mTypeBox->currentData( Qt::UserRole ).toInt() ) == QVariant::Map ? QVariant::String : QVariant::Invalid
);

0 comments on commit 1531cdb

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