Skip to content
Permalink
Browse files

Update qgsvectorlayereditbuffer.cpp

  • Loading branch information
PhilippeDorelon committed Apr 30, 2013
1 parent a6e2fc1 commit 91799532b50ccbe8a4ace2d121ecab438ea1b3d7
Showing with 1 addition and 10 deletions.
  1. +1 −10 src/core/qgsvectorlayereditbuffer.cpp
@@ -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

0 comments on commit 9179953

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