Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #2214 from radosuav/numberInputPanel_range_fix
[Processing] Fix limits in NumberInputPanel when the limiting value is 0
  • Loading branch information
volaya committed Jul 20, 2015
2 parents 49d0f3a + 0dfb156 commit bd73b76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/gui/NumberInputPanel.py
Expand Up @@ -45,11 +45,11 @@ def __init__(self, number, minimum, maximum, isInteger):
self.isInteger = isInteger
if self.isInteger:
self.spnValue.setDecimals(0)
if maximum:
if maximum == 0 or maximum:
self.spnValue.setMaximum(maximum)
else:
self.spnValue.setMaximum(99999999)
if minimum:
if minimum == 0 or minimum:
self.spnValue.setMinimum(minimum)
else:
self.spnValue.setMinimum(-99999999)
Expand Down

0 comments on commit bd73b76

Please sign in to comment.