Skip to content
Permalink
Browse files

patch from alexbruy to make sure check_geometry works with current ve…

…rsion of qgis (previous commit required SIP SIP >= 4.9.

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14639 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
cfarmer
cfarmer committed Nov 14, 2010
1 parent f99ff68 commit d472cc70e7cc87c79835fa9530223a20b5bc0b24
Showing with 6 additions and 1 deletion.
  1. +6 −1 python/plugins/fTools/tools/doValidate.py
@@ -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:

0 comments on commit d472cc7

Please sign in to comment.
You can’t perform that action at this time.