Skip to content
Permalink
Browse files

[processing] Fix maximum/minimum not respected for float spinboxes

  • Loading branch information
nyalldawson committed Nov 18, 2015
1 parent 86c1ffa commit ffd97075168daebd5e2cb9af60f1602069d12e3a
Showing with 8 additions and 8 deletions.
  1. +8 −8 python/plugins/processing/gui/NumberInputPanel.py
@@ -45,14 +45,14 @@ def __init__(self, number, minimum, maximum, isInteger):
self.isInteger = isInteger
if self.isInteger:
self.spnValue.setDecimals(0)
if maximum == 0 or maximum:
self.spnValue.setMaximum(maximum)
else:
self.spnValue.setMaximum(99999999)
if minimum == 0 or minimum:
self.spnValue.setMinimum(minimum)
else:
self.spnValue.setMinimum(-99999999)
if maximum == 0 or maximum:
self.spnValue.setMaximum(maximum)
else:
self.spnValue.setMaximum(99999999)
if minimum == 0 or minimum:
self.spnValue.setMinimum(minimum)
else:
self.spnValue.setMinimum(-99999999)

self.spnValue.setValue(float(number))

0 comments on commit ffd9707

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