We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent aacd9f6 commit 61a292fCopy full SHA for 61a292f
src/providers/wfs/qgswfsdata.cpp
@@ -824,6 +824,8 @@ void QgsWFSData::calculateExtentFromFeatures() const
824
825
QgsFeature* currentFeature = 0;
826
QgsGeometry* currentGeometry = 0;
827
+ bool bboxInitialised = false; //gets true once bbox has been set to the first geometry
828
+
829
for(int i = 0; i < mFeatures.size(); ++i)
830
{
831
currentFeature = mFeatures[i];
@@ -834,9 +836,10 @@ void QgsWFSData::calculateExtentFromFeatures() const
834
836
currentGeometry = currentFeature->geometry();
835
837
if(currentGeometry)
838
- if(bbox.isEmpty())
839
+ if(!bboxInitialised)
840
841
bbox = currentGeometry->boundingBox();
842
+ bboxInitialised = true;
843
}
844
else
845
0 commit comments