From baa75dfc81f73d44d4f0bb5e9c29bc8169c5e8f3 Mon Sep 17 00:00:00 2001 From: WhiteMagic Date: Sun, 16 Jun 2019 18:16:43 +1000 Subject: [PATCH] Fix input viewer value display bug --- gremlin/ui/input_viewer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gremlin/ui/input_viewer.py b/gremlin/ui/input_viewer.py index a3aab450..b2dc75d9 100644 --- a/gremlin/ui/input_viewer.py +++ b/gremlin/ui/input_viewer.py @@ -528,7 +528,7 @@ def set_value(self, value): :param value new value to show """ self.progress.setValue(AxisStateWidget.scale_factor * value) - self.readout.setText("{:d} %".format(int(100 * value))) + self.readout.setText("{:d} %".format(int(round(100 * value)))) class HatWidget(QtWidgets.QWidget):