Skip to content

Commit aca3dfa

Browse files
committedJul 9, 2013
Merge pull request #546 from PhilippeDorelon/addfeatureJoin
Fix #7072 : can't create a feature when a layer has a join
2 parents 0bb9543 + 9179953 commit aca3dfa

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎src/core/qgsvectorlayereditbuffer.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,7 @@ bool QgsVectorLayerEditBuffer::addFeature( QgsFeature& f )
9999
{
100100
return false;
101101
}
102-
103-
int layerFieldCount = L->dataProvider()->fields().count() + mAddedAttributes.count() - mDeletedAttributeIds.count();
104-
if ( layerFieldCount != f.attributes().count() )
102+
if ( L->mUpdatedFields.count() != f.attributes().count() )
105103
return false;
106104

107105
// TODO: check correct geometry type

0 commit comments

Comments
 (0)
Please sign in to comment.