Skip to content

Commit 6e45069

Browse files
committed
set precision to 0 if not defined
1 parent e715b91 commit 6e45069

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/qgsfieldcalculator.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class APP_EXPORT QgsFieldCalculator: public QDialog, private Ui::QgsFieldCalcula
6666
static_cast< QVariant::Type >( mOutputFieldTypeComboBox->itemData( mOutputFieldTypeComboBox->currentIndex(), Qt::UserRole ).toInt() ),
6767
mOutputFieldTypeComboBox->itemData( mOutputFieldTypeComboBox->currentIndex(), Qt::UserRole + 1 ).toString(),
6868
mOutputFieldWidthSpinBox->value(),
69-
mOutputFieldPrecisionSpinBox->value() );
69+
mOutputFieldPrecisionSpinBox->isEnabled() ? mOutputFieldPrecisionSpinBox->value() : 0 );
7070
}
7171

7272
/** Idx of changed attribute*/

0 commit comments

Comments
 (0)