Skip to content

Commit

Permalink
Invalidate the layer cache when rolling back so that it draws correct…
Browse files Browse the repository at this point in the history
…ly afterwards

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11841 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Oct 25, 2009
1 parent a59c512 commit 7a0fc3c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/qgsvectorlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3094,6 +3094,9 @@ bool QgsVectorLayer::rollBack()
emit editingStopped();

setModified( FALSE );
// invalidate teh cache so the layer updates properly to show its original
// after the rollback
setCacheImage( 0 );
triggerRepaint();


Expand Down

0 comments on commit 7a0fc3c

Please sign in to comment.