Skip to content

Commit

Permalink
Update qgsvectorlayereditbuffer.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippeDorelon committed Apr 30, 2013
1 parent a6e2fc1 commit 9179953
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/core/qgsvectorlayereditbuffer.cpp
Expand Up @@ -99,16 +99,7 @@ bool QgsVectorLayerEditBuffer::addFeature( QgsFeature& f )
{
return false;
}
int layerFieldJoinCount=0;
for ( int i = 0; i < L->mUpdatedFields.count(); ++i )
{
if ( L->mUpdatedFields.fieldOrigin(i)==QgsFields::OriginJoin )
{
layerFieldJoinCount++;
}
}
int layerFieldCount = L->dataProvider()->fields().count() + layerFieldJoinCount + mAddedAttributes.count() - mDeletedAttributeIds.count();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
Expand Down

0 comments on commit 9179953

Please sign in to comment.