Trigger layer repaint when adding field-less features (fixes #17426)

This commit is contained in:
Mathieu Pellerin 2017-11-10 10:49:57 +07:00 committed by GitHub
parent 4bdfaa5f95
commit e7a1c0440a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -217,9 +217,14 @@ bool QgsFeatureAction::addFeature( const QgsAttributeMap &defaultAttributes, boo
mFeatureSaved = mLayer->addFeature( *mFeature );
if ( mFeatureSaved )
{
mLayer->endEditCommand();
mLayer->triggerRepaint();
}
else
{
mLayer->destroyEditCommand();
}
}
else
{