Skip to content

Commit

Permalink
No need to append anything, the fieldIdx already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
suricactus authored and nyalldawson committed Oct 21, 2020
1 parent 60c83ee commit f21bd11
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/analysis/processing/qgsalgorithmfieldcalculator.cpp
Expand Up @@ -186,11 +186,10 @@ QgsFeatureList QgsFieldCalculatorAlgorithm::processFeature( const QgsFeature &fe
}

attributes[mFieldIdx] = value;
attributes.append( value );
}
else
{
attributes.append( QVariant() );
attributes[mFieldIdx] = QVariant();
}

QgsFeature f = feature;
Expand Down

0 comments on commit f21bd11

Please sign in to comment.