Skip to content

Commit 9c2efef

Browse files
author
cfarmer
committed
patch to fix additional problem with #2430 thanks to brushtyler
git-svn-id: http://svn.osgeo.org/qgis/trunk@13861 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 6f3384d commit 9c2efef

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

python/plugins/fTools/tools/doRandPoints.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,11 @@ def loopThruPolygons(self, inLayer, numRand, design):
240240
sFeat = QgsFeature()
241241
sGeom = QgsGeometry()
242242
sPoints = []
243-
if design == "field":
243+
if design == self.tr("field"):
244244
for (i, attr) in sProvider.fields().iteritems():
245-
if (unicode(numRand) == attr.name()): index = i #get input field index
245+
if (unicode(numRand) == attr.name()):
246+
index = i #get input field index
247+
break
246248
count = 10.00
247249
add = 60.00 / sProvider.featureCount()
248250
while sProvider.nextFeature(sFeat):

0 commit comments

Comments
 (0)