Skip to content

Commit b3cf454

Browse files
committedNov 30, 2015
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

Lines changed: 1 addition & 1 deletion
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)
Please sign in to comment.