diff --git a/makehuman/lib/qtgui.py b/makehuman/lib/qtgui.py index d356ff3a..05272018 100644 --- a/makehuman/lib/qtgui.py +++ b/makehuman/lib/qtgui.py @@ -453,7 +453,11 @@ def _enter(self): if not text: return oldValue = self.getValue() - newValue = self.fromDisplay(float(text)) + try: + newValue = self.fromDisplay(float(text)) + except ValueError: + newValue = oldValue + self.setValue(newValue) if abs(oldValue - newValue) > 1e-3: self.callEvent('onChanging', newValue)