mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
do not set precision for datatypes that have not one
This commit is contained in:
parent
7933c85126
commit
96aa671307
@ -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() )
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user