summaryrefslogtreecommitdiff
path: root/silx/gui/widgets/FloatEdit.py
diff options
context:
space:
mode:
Diffstat (limited to 'silx/gui/widgets/FloatEdit.py')
-rw-r--r--silx/gui/widgets/FloatEdit.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/silx/gui/widgets/FloatEdit.py b/silx/gui/widgets/FloatEdit.py
index fd6d8a7..36a39a7 100644
--- a/silx/gui/widgets/FloatEdit.py
+++ b/silx/gui/widgets/FloatEdit.py
@@ -1,7 +1,7 @@
# coding: utf-8
# /*##########################################################################
#
-# Copyright (c) 2004-2017 European Synchrotron Radiation Facility
+# Copyright (c) 2004-2018 European Synchrotron Radiation Facility
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
@@ -61,5 +61,5 @@ class FloatEdit(qt.QLineEdit):
:param float value: The value to set the QLineEdit to.
"""
- text = self.validator().locale().toString(value)
+ text = self.validator().locale().toString(float(value))
self.setText(text)