Skip to content
Permalink
Browse files

fix random selections in sextante

  • Loading branch information
vinayan committed May 11, 2013
1 parent e2b1dba commit 2ad5707ba2a855ae09e218c507d6bc1482a978d0
@@ -72,7 +72,7 @@ def processAlgorithm(self, progress):
featureCount = layer.featureCount()
value = int(self.getParameterValue(self.NUMBER))

layer.removeSelection(True)
layer.removeSelection()

if method == 0:
if value > featureCount:
@@ -72,7 +72,7 @@ def processAlgorithm(self, progress):
field = self.getParameterValue(self.FIELD)
method = self.getParameterValue(self.METHOD)

layer.removeSelection(True)
layer.removeSelection()
index = layer.fieldNameIndex(field)

unique = utils.getUniqueValues(layer, index)

0 comments on commit 2ad5707

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