Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[GRASS] suppress form for boundaries
  • Loading branch information
blazek committed Oct 8, 2015
1 parent 7be1b64 commit 6f9bc50
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/plugins/grass/qgsgrassplugin.cpp
Expand Up @@ -449,6 +449,7 @@ void QgsGrassPlugin::addFeature()
QgsDebugMsg( "grassProvider is null" );
return;
}
QgsVectorLayer::FeatureFormSuppress formSuppress = QgsVectorLayer::SuppressDefault;
if ( sender() == mAddPointAction )
{
qGisInterface->mapCanvas()->setMapTool( mAddPoint );
Expand All @@ -463,6 +464,7 @@ void QgsGrassPlugin::addFeature()
{
qGisInterface->mapCanvas()->setMapTool( mAddBoundary );
grassProvider->setNewFeatureType( GV_BOUNDARY );
formSuppress = QgsVectorLayer::SuppressOn;
}
else if ( sender() == mAddCentroidAction )
{
Expand All @@ -473,7 +475,9 @@ void QgsGrassPlugin::addFeature()
{
qGisInterface->mapCanvas()->setMapTool( mAddArea );
grassProvider->setNewFeatureType( GV_AREA );
formSuppress = QgsVectorLayer::SuppressOn;
}
vectorLayer->setFeatureFormSuppress( formSuppress );
}

void QgsGrassPlugin::mapsetChanged()
Expand Down

0 comments on commit 6f9bc50

Please sign in to comment.