Commit f9cfe3b9 authored by Guillaume Seguin's avatar Guillaume Seguin

Fix #543: cast FloatSpin values to int in SpinSetting

parent 63aad039
......@@ -189,6 +189,8 @@ class SpinSetting(wxSetting):
from wx.lib.agw.floatspin import FloatSpin
self.widget = FloatSpin(parent, -1, min_val = self.min, max_val = self.max, digits = 0)
self.widget.SetValue(self.value)
orig = self.widget.GetValue
self.widget.GetValue = lambda: int(orig())
return self.widget
class FloatSpinSetting(SpinSetting):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment