Skip to content

Commit b3cf454

Browse files
committed
Transaction: Update feature with generated values from the provider
1 parent cd06376 commit b3cf454

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/qgsvectorlayereditpassthrough.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ bool QgsVectorLayerEditPassthrough::addFeature( QgsFeature& f )
2424
fl << f;
2525
if ( L->dataProvider()->addFeatures( fl ) )
2626
{
27-
f.setFeatureId( fl.first().id() );
27+
f = fl.first();
2828
emit featureAdded( f.id() );
2929
return true;
3030
}

0 commit comments

Comments
 (0)