Skip to content

Commit 6f9bc50

Browse files
committed
[GRASS] suppress form for boundaries
1 parent 7be1b64 commit 6f9bc50

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎src/plugins/grass/qgsgrassplugin.cpp‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,7 @@ void QgsGrassPlugin::addFeature()
449449
QgsDebugMsg( "grassProvider is null" );
450450
return;
451451
}
452+
QgsVectorLayer::FeatureFormSuppress formSuppress = QgsVectorLayer::SuppressDefault;
452453
if ( sender() == mAddPointAction )
453454
{
454455
qGisInterface->mapCanvas()->setMapTool( mAddPoint );
@@ -463,6 +464,7 @@ void QgsGrassPlugin::addFeature()
463464
{
464465
qGisInterface->mapCanvas()->setMapTool( mAddBoundary );
465466
grassProvider->setNewFeatureType( GV_BOUNDARY );
467+
formSuppress = QgsVectorLayer::SuppressOn;
466468
}
467469
else if ( sender() == mAddCentroidAction )
468470
{
@@ -473,7 +475,9 @@ void QgsGrassPlugin::addFeature()
473475
{
474476
qGisInterface->mapCanvas()->setMapTool( mAddArea );
475477
grassProvider->setNewFeatureType( GV_AREA );
478+
formSuppress = QgsVectorLayer::SuppressOn;
476479
}
480+
vectorLayer->setFeatureFormSuppress( formSuppress );
477481
}
478482

479483
void QgsGrassPlugin::mapsetChanged()

0 commit comments

Comments
 (0)