[QGIS Commit] r11841 - trunk/qgis/src/core

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sun Oct 25 11:55:41 EDT 2009


Author: timlinux
Date: 2009-10-25 11:55:40 -0400 (Sun, 25 Oct 2009)
New Revision: 11841

Modified:
   trunk/qgis/src/core/qgsvectorlayer.cpp
Log:
Invalidate the layer cache when rolling back so that it draws correctly afterwards

Modified: trunk/qgis/src/core/qgsvectorlayer.cpp
===================================================================
--- trunk/qgis/src/core/qgsvectorlayer.cpp	2009-10-25 15:29:17 UTC (rev 11840)
+++ trunk/qgis/src/core/qgsvectorlayer.cpp	2009-10-25 15:55:40 UTC (rev 11841)
@@ -3094,6 +3094,9 @@
   emit editingStopped();
 
   setModified( FALSE );
+  // invalidate teh cache so the layer updates properly to show its original 
+  // after the rollback
+  setCacheImage( 0 );
   triggerRepaint();
 
 



More information about the QGIS-commit mailing list