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
This commit is contained in:
cfarmer 2010-06-30 22:54:16 +00:00
parent 6f3384df41
commit 9c2efef7fc

View File

@ -240,9 +240,11 @@ class Dialog(QDialog, Ui_Dialog):
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):