[QGIS Commit] r10835 - branches/Version-1_0/src/providers/wfs
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Fri May 22 02:58:01 EDT 2009
Author: mhugent
Date: 2009-05-22 02:58:00 -0400 (Fri, 22 May 2009)
New Revision: 10835
Modified:
branches/Version-1_0/src/providers/wfs/qgswfsdata.cpp
Log:
Backport of wfs fix
Modified: branches/Version-1_0/src/providers/wfs/qgswfsdata.cpp
===================================================================
--- branches/Version-1_0/src/providers/wfs/qgswfsdata.cpp 2009-05-22 06:34:32 UTC (rev 10834)
+++ branches/Version-1_0/src/providers/wfs/qgswfsdata.cpp 2009-05-22 06:58:00 UTC (rev 10835)
@@ -799,6 +799,8 @@
QgsFeature* currentFeature = 0;
QgsGeometry* currentGeometry = 0;
+ bool bboxInitialised = false; //gets true once bbox has been set to the first geometry
+
for(int i = 0; i < mFeatures.size(); ++i)
{
currentFeature = mFeatures[i];
@@ -809,9 +811,10 @@
currentGeometry = currentFeature->geometry();
if(currentGeometry)
{
- if(bbox.isEmpty())
+ if(!bboxInitialised)
{
bbox = currentGeometry->boundingBox();
+ bboxInitialised = true;
}
else
{
More information about the QGIS-commit
mailing list