Skip to content
Permalink
Browse files

[Processing] Fix limits in NumberInputPanel when the limiting value is 0

  • Loading branch information
radosuav
radosuav committed Jul 17, 2015
1 parent 4d681f0 commit 0dfb1561c68c34d70fa0a3aff684b66d62c9f3ce
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/processing/gui/NumberInputPanel.py
@@ -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)

0 comments on commit 0dfb156

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