summaryrefslogtreecommitdiff
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
parent3e6e9697ed971c8565adefb621c7440e99d0139b (diff)
Fix thinko causing checked_set (wxSpinCtrlDouble) not to work.
-rw-r--r--ChangeLog4
-rw-r--r--src/wx/wx_util.cc2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 00b1c0089..9d42431b8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-09-16 Carl Hetherington <cth@carlh.net>
+
+ * Fix non-update of audio gain when changing selected content.
+
2014-09-14 Carl Hetherington <cth@carlh.net>
* Version 1.73.5 released.
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);
}
}