summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libs/evoral/ControlList.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/evoral/ControlList.cc b/libs/evoral/ControlList.cc
index 897a689dfc..b6537bff7f 100644
--- a/libs/evoral/ControlList.cc
+++ b/libs/evoral/ControlList.cc
@@ -743,7 +743,7 @@ ControlList::add (double when, double value, bool with_guards, bool with_initial
if (when >= 1) {
if (_desc.toggled) {
- const double opp_val = ((value < 0.5) ? 1.0 : 0.0);
+ const double opp_val = ((value >= 0.5) ? 1.0 : 0.0);
_events.insert (_events.end(), new ControlEvent (0, opp_val));
DEBUG_TRACE (DEBUG::ControlList, string_compose ("@%1 added toggled value %2 at zero\n", this, opp_val));