Skip to content

Commit 7a0fc3c

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/qgis@11841 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent a59c512 commit 7a0fc3c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎src/core/qgsvectorlayer.cpp‎

Lines changed: 3 additions & 0 deletions
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)