summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-09-16 21:15:56 +0100
committerCarl Hetherington <cth@carlh.net>2014-09-16 21:15:56 +0100
commit138dbf31b4f4d711113f91d597c4f312b756d59b (patch)
treedbc6dd4961a5928bce39ee036db3d3c6893da8ca /src
parent3e6e9697ed971c8565adefb621c7440e99d0139b (diff)
Fix thinko causing checked_set (wxSpinCtrlDouble) not to work.
Diffstat (limited to 'src')
-rw-r--r--src/wx/wx_util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/wx_util.cc b/src/wx/wx_util.cc
index 23a85534a..1e501f54f 100644
--- a/src/wx/wx_util.cc
+++ b/src/wx/wx_util.cc
@@ -193,7 +193,7 @@ void
checked_set (wxSpinCtrlDouble* widget, double value)
{
/* XXX: completely arbitrary epsilon */
- if (fabs (widget->GetValue() - value) < 1e-16) {
+ if (fabs (widget->GetValue() - value) > 1e-16) {
widget->SetValue (value);
}
}