Skip to content

Commit 238aa75

Browse files
author
timlinux
committed
Invalidate the layer cache when rolling back so that it draws correctly afterwards
git-svn-id: http://svn.osgeo.org/qgis/trunk@11841 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 81be39a commit 238aa75

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/qgsvectorlayer.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -3094,6 +3094,9 @@ bool QgsVectorLayer::rollBack()
30943094
emit editingStopped();
30953095

30963096
setModified( FALSE );
3097+
// invalidate teh cache so the layer updates properly to show its original
3098+
// after the rollback
3099+
setCacheImage( 0 );
30973100
triggerRepaint();
30983101

30993102

0 commit comments

Comments
 (0)