Skip to content

Commit

Permalink
Pass fields into new feature in add tool
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Mar 30, 2013
1 parent fe59da5 commit 72b476e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/qgsmaptooladdfeature.cpp
Expand Up @@ -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 )
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 72b476e

Please sign in to comment.