Skip to content
Permalink
Browse files
Fixes #11349 - field calculator broke on qgis master
  • Loading branch information
slarosa committed Oct 7, 2014
1 parent ac1e9cb commit fbc5f060f64d338fa0f0928236a7c87cfc39cbf2
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/qgsfieldcalculator.cpp
@@ -127,8 +127,6 @@ void QgsFieldCalculator::accept()
return;
}

const QgsField& field = mVectorLayer->pendingFields()[mAttributeId];

QApplication::setOverrideCursor( Qt::WaitCursor );

mVectorLayer->beginEditCommand( "Field calculator" );
@@ -197,6 +195,8 @@ void QgsFieldCalculator::accept()
bool useGeometry = exp.needsGeometry();
int rownum = 1;

const QgsField& field = mVectorLayer->pendingFields()[mAttributeId];

bool newField = !mUpdateExistingGroupBox->isChecked();
QVariant emptyAttribute;
if ( newField )

0 comments on commit fbc5f06

Please sign in to comment.