Skip to content

Commit

Permalink
patch from alexbruy to make sure check_geometry works with current ve…
Browse files Browse the repository at this point in the history
…rsion of qgis (previous commit required SIP SIP >= 4.9.

git-svn-id: http://svn.osgeo.org/qgis/trunk@14639 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
cfarmer committed Nov 14, 2010
1 parent 45ba237 commit f084b2c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion python/plugins/fTools/tools/doValidate.py
Expand Up @@ -154,8 +154,13 @@ def check_geometry( self, vlayer ):
layer = vlayer.selectedFeatures()
nFeat = len(layer)
else:
layer = vlayer
#layer = vlayer # requires SIP >= 4.9
layer = []
layer.select([]) # select all features, and ignore attributes
ft = QgsFeature()
while vlayer.nextFeature(ft)
layer.append(ft)
ft = QgsFeature()
nFeat = layer.featureCount()
nElement = 0
if nFeat > 0:
Expand Down

0 comments on commit f084b2c

Please sign in to comment.