diff --git a/src/core/qgsvectorlayer.cpp b/src/core/qgsvectorlayer.cpp index 00ec773c523..ff33d58e60c 100644 --- a/src/core/qgsvectorlayer.cpp +++ b/src/core/qgsvectorlayer.cpp @@ -2894,9 +2894,12 @@ bool QgsVectorLayer::commitChanges() QgsAttributeMap dst; for ( QgsAttributeMap::const_iterator it = src.begin(); it != src.end(); it++ ) + { if ( remap.contains( it.key() ) ) + { dst[ remap[it.key()] ] = it.value(); - + } + } src = dst; } @@ -3031,6 +3034,7 @@ bool QgsVectorLayer::commitChanges() emit editingStopped(); } + mDataProvider->updateExtents(); mDataProvider->updateFeatureCount();