From 93d5b6c5540fa8d2633d29cf4252088e80b4a9a1 Mon Sep 17 00:00:00 2001 From: nick_m Date: Tue, 20 Oct 2015 00:48:30 +1100 Subject: [PATCH] Set toggled automation controller using a double. --- gtk2_ardour/automation_controller.cc | 4 ++-- 1 file 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 ()) {