Skip to content

Commit a4ed8e0

Browse files
committedMar 29, 2016
Fix field calc bar error when setting to field name with spaces
1 parent 53b493c commit a4ed8e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/app/qgsattributetabledialog.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,13 +349,13 @@ void QgsAttributeTableDialog::updateFieldFromExpression()
349349
{
350350
bool filtered = mMainView->filterMode() != QgsAttributeTableFilterModel::ShowAll;
351351
QgsFeatureIds filteredIds = filtered ? mMainView->filteredFeatures() : QgsFeatureIds();
352-
runFieldCalculation( mLayer, mFieldCombo->currentText(), mUpdateExpressionText->currentField(), filteredIds );
352+
runFieldCalculation( mLayer, mFieldCombo->currentText(), mUpdateExpressionText->asExpression(), filteredIds );
353353
}
354354

355355
void QgsAttributeTableDialog::updateFieldFromExpressionSelected()
356356
{
357357
QgsFeatureIds filteredIds = mLayer->selectedFeaturesIds();
358-
runFieldCalculation( mLayer, mFieldCombo->currentText(), mUpdateExpressionText->currentField(), filteredIds );
358+
runFieldCalculation( mLayer, mFieldCombo->currentText(), mUpdateExpressionText->asExpression(), filteredIds );
359359
}
360360

361361
void QgsAttributeTableDialog::runFieldCalculation( QgsVectorLayer* layer, const QString& fieldName, const QString& expression, const QgsFeatureIds& filteredIds )

0 commit comments

Comments
 (0)
Please sign in to comment.