Fix bug where int and float parameter limits are not always set.

This commit is contained in:
lidstrom83 2016-05-03 12:25:05 -06:00
parent 670d63cdf4
commit 5322c0233b
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ class WidgetParameterItem(ParameterItem):
if k in opts:
defs[k] = opts[k]
if 'limits' in opts:
defs['bounds'] = opts['limits']
defs['min'], defs['max'] = opts['limits']
w = SpinBox()
w.setOpts(**defs)
w.sigChanged = w.sigValueChanged