Skip to content

Commit

Permalink
patch to fix additional problem with #2430 thanks to brushtyler
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@13861 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
cfarmer committed Jun 30, 2010
1 parent 6f3384d commit 9c2efef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/plugins/fTools/tools/doRandPoints.py
Expand Up @@ -240,9 +240,11 @@ def loopThruPolygons(self, inLayer, numRand, design):
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):
Expand Down

0 comments on commit 9c2efef

Please sign in to comment.