We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent ac1e9cb commit fbc5f06Copy full SHA for fbc5f06
src/app/qgsfieldcalculator.cpp
@@ -127,8 +127,6 @@ void QgsFieldCalculator::accept()
127
return;
128
}
129
130
- const QgsField& field = mVectorLayer->pendingFields()[mAttributeId];
131
-
132
QApplication::setOverrideCursor( Qt::WaitCursor );
133
134
mVectorLayer->beginEditCommand( "Field calculator" );
@@ -197,6 +195,8 @@ void QgsFieldCalculator::accept()
197
195
bool useGeometry = exp.needsGeometry();
198
196
int rownum = 1;
199
+ const QgsField& field = mVectorLayer->pendingFields()[mAttributeId];
+
200
bool newField = !mUpdateExistingGroupBox->isChecked();
201
QVariant emptyAttribute;
202
if ( newField )
0 commit comments