[QGIS Commit] r14640 - trunk/qgis/python/plugins/fTools/tools
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Sun Nov 14 09:20:21 EST 2010
Author: cfarmer
Date: 2010-11-14 06:20:21 -0800 (Sun, 14 Nov 2010)
New Revision: 14640
Modified:
trunk/qgis/python/plugins/fTools/tools/doValidate.py
Log:
quick typo fix
Modified: trunk/qgis/python/plugins/fTools/tools/doValidate.py
===================================================================
--- trunk/qgis/python/plugins/fTools/tools/doValidate.py 2010-11-14 14:02:42 UTC (rev 14639)
+++ trunk/qgis/python/plugins/fTools/tools/doValidate.py 2010-11-14 14:20:21 UTC (rev 14640)
@@ -156,12 +156,11 @@
else:
#layer = vlayer # requires SIP >= 4.9
layer = []
- layer.select([]) # select all features, and ignore attributes
+ vlayer.select([]) # select all features, and ignore attributes
ft = QgsFeature()
- while vlayer.nextFeature(ft)
- layer.append(ft)
- ft = QgsFeature()
- nFeat = layer.featureCount()
+ while vlayer.nextFeature(ft):
+ layer.append(QgsFeature(ft))
+ nFeat = len(layer)
nElement = 0
if nFeat > 0:
self.emit( SIGNAL( "runStatus(PyQt_PyObject)" ), 0 )
More information about the QGIS-commit
mailing list