Skip to content
Permalink
Browse files

[fTools] correctly handle real fields in Random Points algorithm (fix #…

  • Loading branch information
alexbruy committed Jan 18, 2016
1 parent c63d16a commit b2ca6d0288e454e8ae520798eb18a87caf483d00
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/fTools/tools/doRandPoints.py
@@ -69,7 +69,7 @@ def update(self, inputLayer):
changedLayer = ftools_utils.getVectorLayerByName(inputLayer)
changedFields = ftools_utils.getFieldList(changedLayer)
for f in changedFields:
if f.typeName().lower() == "integer":
if f.typeName().lower() in ["integer", "real"]:
self.cmbField.addItem(unicode(f.name()))
else:
self.rdoUnstratified.setChecked(True)

0 comments on commit b2ca6d0

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