Skip to content
Permalink
Browse files

do not set precision for datatypes that have not one

cherry-picked from 96aa671
  • Loading branch information
slarosa authored and nyalldawson committed Jul 16, 2018
1 parent d9b9fd8 commit c1aca1b524ff2d3dd1d6fef05605853ec203cbe4
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 c1aca1b

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