From 7d90ad4023d286ac229c9d5c936b7270e0d05ee6 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 13 Nov 2019 16:53:46 +0100 Subject: [PATCH] Fix bool-automation anchor Typo sneaked in from ff2f93497...cc7de475f2 --- libs/evoral/ControlList.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));