[QGIS Commit] r15056 - trunk/qgis/src/providers/wfs

svn_qgis at osgeo.org svn_qgis at osgeo.org
Tue Jan 18 13:37:37 EST 2011


Author: jef
Date: 2011-01-18 10:37:37 -0800 (Tue, 18 Jan 2011)
New Revision: 15056

Modified:
   trunk/qgis/src/providers/wfs/qgswfsprovider.cpp
Log:
fix #3424

Modified: trunk/qgis/src/providers/wfs/qgswfsprovider.cpp
===================================================================
--- trunk/qgis/src/providers/wfs/qgswfsprovider.cpp	2011-01-17 22:12:30 UTC (rev 15055)
+++ trunk/qgis/src/providers/wfs/qgswfsprovider.cpp	2011-01-18 18:37:37 UTC (rev 15056)
@@ -224,13 +224,14 @@
   if ( rect.isEmpty() )
   {
     mSpatialFilter = mExtent;
+    mSelectedFeatures = mFeatures.keys();
   }
   else
   {
     mSpatialFilter = rect;
+    mSelectedFeatures = mSpatialIndex->intersects( mSpatialFilter );
   }
 
-  mSelectedFeatures = mSpatialIndex->intersects( mSpatialFilter );
   mFeatureIterator = mSelectedFeatures.begin();
 }
 



More information about the QGIS-commit mailing list