Skip to content

Commit

Permalink
allow float values in densify interval input field
Browse files Browse the repository at this point in the history
  • Loading branch information
anitagraser committed Dec 27, 2013
1 parent 4b9edc7 commit 719f8d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions python/plugins/processing/algs/ftools/DensifyGeometries.py
Expand Up @@ -48,8 +48,7 @@ def defineCharacteristics(self):
self.addParameter(ParameterVector(self.INPUT, 'Input layer',
[ParameterVector.VECTOR_TYPE_POLYGON,
ParameterVector.VECTOR_TYPE_LINE]))
self.addParameter(ParameterNumber(self.VERTICES, 'Vertices to add', 1,
10000000, 1))
self.addParameter(ParameterNumber(self.VERTICES, 'Vertices to add', 0.0, 10000000.0, 1.0))

self.addOutput(OutputVector(self.OUTPUT, 'Densified layer'))

Expand Down
Expand Up @@ -52,7 +52,7 @@ def defineCharacteristics(self):
[ParameterVector.VECTOR_TYPE_POLYGON,
ParameterVector.VECTOR_TYPE_LINE]))
self.addParameter(ParameterNumber(self.INTERVAL,
'Interval between Vertices to add', 1, 10000000, 1))
'Interval between Vertices to add', 0.0, 10000000.0, 1.0))

self.addOutput(OutputVector(self.OUTPUT, 'Densified layer'))

Expand Down

0 comments on commit 719f8d5

Please sign in to comment.