We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 7933c85 commit 96aa671Copy full SHA for 96aa671
src/app/qgsfieldcalculator.cpp
@@ -516,7 +516,7 @@ QgsField QgsFieldCalculator::fieldDefinition()
516
static_cast< QVariant::Type >( mOutputFieldTypeComboBox->currentData( Qt::UserRole + FTC_TYPE_ROLE_IDX ).toInt() ),
517
mOutputFieldTypeComboBox->currentData( Qt::UserRole + FTC_TYPE_NAME_IDX ).toString(),
518
mOutputFieldWidthSpinBox->value(),
519
- mOutputFieldPrecisionSpinBox->value(),
+ mOutputFieldPrecisionSpinBox->isEnabled() ? mOutputFieldPrecisionSpinBox->value() : 0,
520
QString(),
521
static_cast< QVariant::Type >( mOutputFieldTypeComboBox->currentData( Qt::UserRole + FTC_SUBTYPE_IDX ).toInt() )
522
);
0 commit comments