mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Trigger layer repaint when adding field-less features (fixes #17426)
This commit is contained in:
parent
4bdfaa5f95
commit
e7a1c0440a
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user