We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c31a6e commit 6bbc149Copy full SHA for 6bbc149
src/core/qgsvectorlayer.cpp
@@ -2592,6 +2592,11 @@ bool QgsVectorLayer::commitChanges()
2592
QgsMessageLog::logMessage( tr( "Commit errors:\n %1" ).arg( mCommitErrors.join( "\n " ) ) );
2593
}
2594
2595
+ if ( mCache )
2596
+ {
2597
+ mCache->deleteCachedGeometries();
2598
+ }
2599
+
2600
updateFields();
2601
mDataProvider->updateExtents();
2602
@@ -2634,6 +2639,11 @@ bool QgsVectorLayer::rollBack( bool deleteBuffer )
2634
2639
2635
2640
emit editingStopped();
2636
2641
2642
2643
2644
2645
2646
2637
2647
// invalidate the cache so the layer updates properly to show its original
2638
2648
// after the rollback
2649
setCacheImage( 0 );
0 commit comments