summaryrefslogtreecommitdiff
path: root/gtk2_ardour/automation_controller.cc
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2015-10-20 00:48:30 +1100
committernick_m <mainsbridge@gmail.com>2015-10-20 00:53:31 +1100
commit93d5b6c5540fa8d2633d29cf4252088e80b4a9a1 (patch)
treecd4cd9238121dab3e5fbf4b3a17cc3054eb880fe /gtk2_ardour/automation_controller.cc
parentd0c94c9779c2b50deb84192238680709a745d799 (diff)
Set toggled automation controller using a double.
Diffstat (limited to 'gtk2_ardour/automation_controller.cc')
-rw-r--r--gtk2_ardour/automation_controller.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/automation_controller.cc b/gtk2_ardour/automation_controller.cc
index 14f778ffa8..dd2d71d9cd 100644
--- a/gtk2_ardour/automation_controller.cc
+++ b/gtk2_ardour/automation_controller.cc
@@ -207,8 +207,8 @@ AutomationController::toggled ()
}
_controllable->list ()->set_in_write_pass (true, false, where);
}
-
- _controllable->set_double (!but->get_active (), where, to_list);
+ /* set to opposite value.*/
+ _controllable->set_double (but->get_active () ? 0.0 : 1.0, where, to_list);
const bool active = _controllable->get_double (to_list, where) >= 0.5;
if (active && !but->get_active ()) {