Skip to content
Permalink
Browse files

[processing] if min and max values not set use redefined ones

  • Loading branch information
alexbruy committed Sep 22, 2013
1 parent 05a9481 commit 3833ddf8764dcfcc5dd2b70624b2f9cae4cfd917
Showing with 8 additions and 2 deletions.
  1. +8 −2 python/plugins/processing/gui/NumberInputPanel.py
@@ -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)

0 comments on commit 3833ddf

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