We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd06376 commit b3cf454Copy full SHA for b3cf454
src/core/qgsvectorlayereditpassthrough.cpp
@@ -24,7 +24,7 @@ bool QgsVectorLayerEditPassthrough::addFeature( QgsFeature& f )
24
fl << f;
25
if ( L->dataProvider()->addFeatures( fl ) )
26
{
27
- f.setFeatureId( fl.first().id() );
+ f = fl.first();
28
emit featureAdded( f.id() );
29
return true;
30
}
0 commit comments