Skip to content

Commit fbc5f06

Browse files
committedOct 7, 2014
Fixes #11349 - field calculator broke on qgis master
1 parent ac1e9cb commit fbc5f06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/app/qgsfieldcalculator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,6 @@ void QgsFieldCalculator::accept()
127127
return;
128128
}
129129

130-
const QgsField& field = mVectorLayer->pendingFields()[mAttributeId];
131-
132130
QApplication::setOverrideCursor( Qt::WaitCursor );
133131

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

198+
const QgsField& field = mVectorLayer->pendingFields()[mAttributeId];
199+
200200
bool newField = !mUpdateExistingGroupBox->isChecked();
201201
QVariant emptyAttribute;
202202
if ( newField )

0 commit comments

Comments
 (0)
Please sign in to comment.