diff --git a/src/core/qgsvectorlayer.cpp b/src/core/qgsvectorlayer.cpp index 7f6c51e606e..c651908c351 100644 --- a/src/core/qgsvectorlayer.cpp +++ b/src/core/qgsvectorlayer.cpp @@ -1610,7 +1610,7 @@ bool QgsVectorLayer::nextFeature( QgsFeature &f ) for ( QgsFeatureList::iterator it = mAddedFeatures.begin(); it != mAddedFeatures.end(); it++ ) { - if ( fid != it->id() ) + if ( fid == it->id() ) { found = true; f.setAttributeMap( it->attributeMap() );