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

svn_qgis at osgeo.org svn_qgis at osgeo.org
Tue Dec 9 15:24:36 EST 2008


Author: jef
Date: 2008-12-09 15:24:36 -0500 (Tue, 09 Dec 2008)
New Revision: 9761

Modified:
   trunk/qgis/src/core/qgsvectorlayer.cpp
Log:
fix QgsVectorLayer::updateExtents()

Modified: trunk/qgis/src/core/qgsvectorlayer.cpp
===================================================================
--- trunk/qgis/src/core/qgsvectorlayer.cpp	2008-12-09 19:59:12 UTC (rev 9760)
+++ trunk/qgis/src/core/qgsvectorlayer.cpp	2008-12-09 20:24:36 UTC (rev 9761)
@@ -1087,7 +1087,7 @@
   if ( !mDataProvider )
     QgsLogger::warning( " QgsVectorLayer::updateExtents() invoked with null mDataProvider" );
 
-  if ( mDeletedFeatureIds.isEmpty() )
+  if ( mDeletedFeatureIds.isEmpty() && mChangedGeometries.isEmpty() )
   {
     // get the extent of the layer from the provider
     // but only when there are some features already



More information about the QGIS-commit mailing list