File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -99,8 +99,15 @@ bool QgsVectorLayerEditBuffer::addFeature( QgsFeature& f )
9999 {
100100 return false ;
101101 }
102-
103- int layerFieldCount = L->dataProvider ()->fields ().count () + mAddedAttributes .count () - mDeletedAttributeIds .count ();
102+ int layerFieldJoinCount=0 ;
103+ for ( int i = 0 ; i < L->mUpdatedFields .count (); ++i )
104+ {
105+ if ( L->mUpdatedFields .fieldOrigin (i)==QgsFields::OriginJoin )
106+ {
107+ layerFieldJoinCount++;
108+ }
109+ }
110+ int layerFieldCount = L->dataProvider ()->fields ().count () + layerFieldJoinCount + mAddedAttributes .count () - mDeletedAttributeIds .count ();int layerFieldCount = L->dataProvider ()->fields ().count () + mAddedAttributes .count () - mDeletedAttributeIds .count ();
104111 if ( layerFieldCount != f.attributes ().count () )
105112 return false ;
106113
You can’t perform that action at this time.
0 commit comments