diff options
author | Robin Gareus <robin@gareus.org> | 2019-11-13 16:53:46 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-11-13 16:53:46 +0100 |
commit | 7d90ad4023d286ac229c9d5c936b7270e0d05ee6 (patch) | |
tree | 780615b00e657e05f8d9051ab85cf5537881b7f1 /libs/evoral | |
parent | 9b3ebd82ab0ab299e7ac810fb371d45926d3e871 (diff) |
Fix bool-automation anchor
Typo sneaked in from ff2f93497...cc7de475f2
Diffstat (limited to 'libs/evoral')
-rw-r--r-- | libs/evoral/ControlList.cc | 2 |
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)); |