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 d472cc7 commit 51e9123Copy full SHA for 51e9123
python/plugins/fTools/tools/doValidate.py
@@ -156,12 +156,11 @@ def check_geometry( self, vlayer ):
156
else:
157
#layer = vlayer # requires SIP >= 4.9
158
layer = []
159
- layer.select([]) # select all features, and ignore attributes
+ vlayer.select([]) # select all features, and ignore attributes
160
ft = QgsFeature()
161
- while vlayer.nextFeature(ft)
162
- layer.append(ft)
163
- ft = QgsFeature()
164
- nFeat = layer.featureCount()
+ while vlayer.nextFeature(ft):
+ layer.append(QgsFeature(ft))
+ nFeat = len(layer)
165
nElement = 0
166
if nFeat > 0:
167
self.emit( SIGNAL( "runStatus(PyQt_PyObject)" ), 0 )
0 commit comments