Skip to content
Permalink
Browse files

Merge pull request #2214 from radosuav/numberInputPanel_range_fix

[Processing] Fix limits in NumberInputPanel when the limiting value is 0
  • Loading branch information
volaya committed Jul 20, 2015
2 parents 49d0f3a + 0dfb156 commit bd73b76a295fa3b6b4aa23381437def328fb0b0d
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 bd73b76

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