Skip to content

Commit

Permalink
[Processing] Fix limits in NumberInputPanel when the limiting value is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
radosuav committed Jul 17, 2015
1 parent 4d681f0 commit 0dfb156
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 0dfb156

Please sign in to comment.