Skip to content
Permalink
Browse files
Pass fields into new feature in add tool
  • Loading branch information
NathanW2 committed Mar 30, 2013
1 parent fe59da5 commit 72b476e7025c395a44d0155de19cae592c2738a9
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/qgsmaptooladdfeature.cpp
@@ -113,7 +113,7 @@ void QgsMapToolAddFeature::canvasReleaseEvent( QMouseEvent * e )
//grass provider has its own mechanism of feature addition
if ( provider->capabilities() & QgsVectorDataProvider::AddFeatures )
{
QgsFeature* f = new QgsFeature( 0 );
QgsFeature* f = new QgsFeature( vlayer->pendingFields(), 0 );

QgsGeometry *g = 0;
if ( layerWKBType == QGis::WKBPoint || layerWKBType == QGis::WKBPoint25D )
@@ -198,7 +198,7 @@ void QgsMapToolAddFeature::canvasReleaseEvent( QMouseEvent * e )
}

//create QgsFeature with wkb representation
QgsFeature* f = new QgsFeature( 0 );
QgsFeature* f = new QgsFeature( vlayer->pendingFields(), 0 );

QgsGeometry *g;

0 comments on commit 72b476e

Please sign in to comment.