Skip to content
Permalink
Browse files

Merge pull request #546 from PhilippeDorelon/addfeatureJoin

Fix #7072 : can't create a feature when a layer has a join
  • Loading branch information
NathanW2 committed Jul 9, 2013
2 parents 0bb9543 + 9179953 commit aca3dfaf77a227e95c67a5dabbe67887b30a53fe
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/core/qgsvectorlayereditbuffer.cpp
@@ -99,9 +99,7 @@ bool QgsVectorLayerEditBuffer::addFeature( QgsFeature& f )
{
return false;
}

int layerFieldCount = L->dataProvider()->fields().count() + mAddedAttributes.count() - mDeletedAttributeIds.count();
if ( layerFieldCount != f.attributes().count() )
if ( L->mUpdatedFields.count() != f.attributes().count() )
return false;

// TODO: check correct geometry type

0 comments on commit aca3dfa

Please sign in to comment.
You can’t perform that action at this time.