Skip to content
Permalink
Browse files

Fix field calc bar error when setting to field name with spaces

  • Loading branch information
nyalldawson committed Mar 29, 2016
1 parent 53b493c commit a4ed8e03e649e79c1e43c338426eca40c3d429a1
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/qgsattributetabledialog.cpp
@@ -349,13 +349,13 @@ void QgsAttributeTableDialog::updateFieldFromExpression()
{
bool filtered = mMainView->filterMode() != QgsAttributeTableFilterModel::ShowAll;
QgsFeatureIds filteredIds = filtered ? mMainView->filteredFeatures() : QgsFeatureIds();
runFieldCalculation( mLayer, mFieldCombo->currentText(), mUpdateExpressionText->currentField(), filteredIds );
runFieldCalculation( mLayer, mFieldCombo->currentText(), mUpdateExpressionText->asExpression(), filteredIds );
}

void QgsAttributeTableDialog::updateFieldFromExpressionSelected()
{
QgsFeatureIds filteredIds = mLayer->selectedFeaturesIds();
runFieldCalculation( mLayer, mFieldCombo->currentText(), mUpdateExpressionText->currentField(), filteredIds );
runFieldCalculation( mLayer, mFieldCombo->currentText(), mUpdateExpressionText->asExpression(), filteredIds );
}

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

0 comments on commit a4ed8e0

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