diff options
author | nick_m <mainsbridge@gmail.com> | 2015-10-20 00:48:30 +1100 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2015-10-20 00:53:31 +1100 |
commit | 93d5b6c5540fa8d2633d29cf4252088e80b4a9a1 (patch) | |
tree | cd4cd9238121dab3e5fbf4b3a17cc3054eb880fe /gtk2_ardour/automation_controller.cc | |
parent | d0c94c9779c2b50deb84192238680709a745d799 (diff) |
Set toggled automation controller using a double.
Diffstat (limited to 'gtk2_ardour/automation_controller.cc')
-rw-r--r-- | gtk2_ardour/automation_controller.cc | 4 |
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 ()) { |