summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgr-qtgui/python/qtgui/range.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-qtgui/python/qtgui/range.py b/gr-qtgui/python/qtgui/range.py
index ca42bf71f7..f60d6919bf 100755
--- a/gr-qtgui/python/qtgui/range.py
+++ b/gr-qtgui/python/qtgui/range.py
@@ -182,11 +182,11 @@ class RangeWidget(QtGui.QWidget):
self.rangeType = rangeType
# Setup the counter
+ self.setDecimals(ranges.precision)
self.setRange(ranges.min, ranges.max)
self.setValue(ranges.default)
self.setSingleStep(ranges.step)
self.setKeyboardTracking(False)
- self.setDecimals(ranges.precision)
# The counter already handles floats and can be connected directly.
self.valueChanged.connect(self.changed)