[QGIS Commit] r13861 - trunk/qgis/python/plugins/fTools/tools
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Wed Jun 30 18:54:16 EDT 2010
Author: cfarmer
Date: 2010-06-30 22:54:16 +0000 (Wed, 30 Jun 2010)
New Revision: 13861
Modified:
trunk/qgis/python/plugins/fTools/tools/doRandPoints.py
Log:
patch to fix additional problem with #2430 thanks to brushtyler
Modified: trunk/qgis/python/plugins/fTools/tools/doRandPoints.py
===================================================================
--- trunk/qgis/python/plugins/fTools/tools/doRandPoints.py 2010-06-30 22:50:17 UTC (rev 13860)
+++ trunk/qgis/python/plugins/fTools/tools/doRandPoints.py 2010-06-30 22:54:16 UTC (rev 13861)
@@ -240,9 +240,11 @@
sFeat = QgsFeature()
sGeom = QgsGeometry()
sPoints = []
- if design == "field":
+ if design == self.tr("field"):
for (i, attr) in sProvider.fields().iteritems():
- if (unicode(numRand) == attr.name()): index = i #get input field index
+ if (unicode(numRand) == attr.name()):
+ index = i #get input field index
+ break
count = 10.00
add = 60.00 / sProvider.featureCount()
while sProvider.nextFeature(sFeat):
More information about the QGIS-commit
mailing list