projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0c94c9
)
Set toggled automation controller using a double.
author
nick_m
<mainsbridge@gmail.com>
Mon, 19 Oct 2015 13:48:30 +0000
(
00:48
+1100)
committer
nick_m
<mainsbridge@gmail.com>
Mon, 19 Oct 2015 13:53:31 +0000
(
00:53
+1100)
gtk2_ardour/automation_controller.cc
patch
|
blob
|
history
diff --git
a/gtk2_ardour/automation_controller.cc
b/gtk2_ardour/automation_controller.cc
index 14f778ffa84d3f9e1058489ae6fffe0b3ff05ed5..dd2d71d9cd4d5c43f96650a3aa3ff4230dbf18c7 100644
(file)
--- 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 ()) {