We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f084b2c commit 6bd3183Copy full SHA for 6bd3183
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