Skip to content
Permalink
Browse files

Merge pull request #7418 from slarosa/fix_precision_value

[fieldcalculator] do not set precision for datatypes that have not one
  • Loading branch information
slarosa committed Jul 25, 2018
2 parents 28c4a6c + 96aa671 commit 3425046204a31e0cf62da225657091a2a63b2400
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgsfieldcalculator.cpp
@@ -516,7 +516,7 @@ QgsField QgsFieldCalculator::fieldDefinition()
static_cast< QVariant::Type >( mOutputFieldTypeComboBox->currentData( Qt::UserRole + FTC_TYPE_ROLE_IDX ).toInt() ),
mOutputFieldTypeComboBox->currentData( Qt::UserRole + FTC_TYPE_NAME_IDX ).toString(),
mOutputFieldWidthSpinBox->value(),
mOutputFieldPrecisionSpinBox->value(),
mOutputFieldPrecisionSpinBox->isEnabled() ? mOutputFieldPrecisionSpinBox->value() : 0,
QString(),
static_cast< QVariant::Type >( mOutputFieldTypeComboBox->currentData( Qt::UserRole + FTC_SUBTYPE_IDX ).toInt() )
);

0 comments on commit 3425046

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