File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ void QgsMapToolAddFeature::canvasReleaseEvent( QMouseEvent * e )
113
113
// grass provider has its own mechanism of feature addition
114
114
if ( provider->capabilities () & QgsVectorDataProvider::AddFeatures )
115
115
{
116
- QgsFeature* f = new QgsFeature ( 0 );
116
+ QgsFeature* f = new QgsFeature ( vlayer-> pendingFields (), 0 );
117
117
118
118
QgsGeometry *g = 0 ;
119
119
if ( layerWKBType == QGis::WKBPoint || layerWKBType == QGis::WKBPoint25D )
@@ -198,7 +198,7 @@ void QgsMapToolAddFeature::canvasReleaseEvent( QMouseEvent * e )
198
198
}
199
199
200
200
// create QgsFeature with wkb representation
201
- QgsFeature* f = new QgsFeature ( 0 );
201
+ QgsFeature* f = new QgsFeature ( vlayer-> pendingFields (), 0 );
202
202
203
203
QgsGeometry *g;
204
204
You can’t perform that action at this time.
0 commit comments