[QGIS Commit] r14862 - in branches/threading-branch/src/providers:
postgres wfs
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Wed Dec 8 10:07:17 EST 2010
Author: mhugent
Date: 2010-12-08 07:07:16 -0800 (Wed, 08 Dec 2010)
New Revision: 14862
Modified:
branches/threading-branch/src/providers/postgres/qgspostgresfeatureiterator.cpp
branches/threading-branch/src/providers/wfs/qgswfsfeatureiterator.cpp
Log:
Wfs and postgres iterators: set features valid
Modified: branches/threading-branch/src/providers/postgres/qgspostgresfeatureiterator.cpp
===================================================================
--- branches/threading-branch/src/providers/postgres/qgspostgresfeatureiterator.cpp 2010-12-08 14:05:42 UTC (rev 14861)
+++ branches/threading-branch/src/providers/postgres/qgspostgresfeatureiterator.cpp 2010-12-08 15:07:16 UTC (rev 14862)
@@ -118,6 +118,7 @@
// Now return the next feature from the queue
feature = mFeatureQueue.front();
+ feature.setValid( true );
mFeatureQueue.pop();
mFetched++;
Modified: branches/threading-branch/src/providers/wfs/qgswfsfeatureiterator.cpp
===================================================================
--- branches/threading-branch/src/providers/wfs/qgswfsfeatureiterator.cpp 2010-12-08 14:05:42 UTC (rev 14861)
+++ branches/threading-branch/src/providers/wfs/qgswfsfeatureiterator.cpp 2010-12-08 15:07:16 UTC (rev 14862)
@@ -50,7 +50,7 @@
}
feature = *origFeature; // copy feature
-
+ feature.setValid( true );
++mFeatureIterator;
return true;
}
More information about the QGIS-commit
mailing list