Skip to content

Commit

Permalink
[processing] if min and max values not set use redefined ones
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Sep 22, 2013
1 parent 05a9481 commit 3833ddf
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions python/plugins/processing/gui/NumberInputPanel.py
Expand Up @@ -36,8 +36,14 @@ def __init__(self, number, minimum, maximum, isInteger):
self.isInteger = isInteger
if isInteger:
self.spin = QtGui.QSpinBox()
self.spin.setMaximum(maximum)
self.spin.setMinimum(minimum)
if maximum:
self.spin.setMaximum(maximum)
else:
self.spin.setMaximum(99999999)
if minimum:
self.spin.setMinimum(minimum)
else:
self.spin.setMinimum(-99999999)
self.spin.setValue(number)
self.horizontalLayout.addWidget(self.spin)
self.setLayout(self.horizontalLayout)
Expand Down

0 comments on commit 3833ddf

Please sign in to comment.