Skip to content
Permalink
Browse files

[GRASS] suppress form for boundaries

  • Loading branch information
blazek committed Oct 8, 2015
1 parent 7be1b64 commit 6f9bc503c1c7e2e5b72de7121b205948ab6930d8
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/plugins/grass/qgsgrassplugin.cpp
@@ -449,6 +449,7 @@ void QgsGrassPlugin::addFeature()
QgsDebugMsg( "grassProvider is null" );
return;
}
QgsVectorLayer::FeatureFormSuppress formSuppress = QgsVectorLayer::SuppressDefault;
if ( sender() == mAddPointAction )
{
qGisInterface->mapCanvas()->setMapTool( mAddPoint );
@@ -463,6 +464,7 @@ void QgsGrassPlugin::addFeature()
{
qGisInterface->mapCanvas()->setMapTool( mAddBoundary );
grassProvider->setNewFeatureType( GV_BOUNDARY );
formSuppress = QgsVectorLayer::SuppressOn;
}
else if ( sender() == mAddCentroidAction )
{
@@ -473,7 +475,9 @@ void QgsGrassPlugin::addFeature()
{
qGisInterface->mapCanvas()->setMapTool( mAddArea );
grassProvider->setNewFeatureType( GV_AREA );
formSuppress = QgsVectorLayer::SuppressOn;
}
vectorLayer->setFeatureFormSuppress( formSuppress );
}

void QgsGrassPlugin::mapsetChanged()

0 comments on commit 6f9bc50

Please sign in to comment.
You can’t perform that action at this time.