diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-10-14 11:16:42 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-10-14 11:42:41 -0400 |
commit | 92f1eb6be9df2ad0194872ea40c776b6c1983d08 (patch) | |
tree | d792d2f8f979277b52bfa60c8206a51823a83046 /libs/ardour/slavable_automation_control.cc | |
parent | a4ad0a90d124f1e1b6d84fdf221d948ea3733f79 (diff) |
Revert "change return type of AutomationControl::actually_set_value() from void to bool, to indicate if value was changed."
This reverts commit c104c9d4726f3ba1ecd352d13b88a57f2f964510.
Diffstat (limited to 'libs/ardour/slavable_automation_control.cc')
-rw-r--r-- | libs/ardour/slavable_automation_control.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/libs/ardour/slavable_automation_control.cc b/libs/ardour/slavable_automation_control.cc index 2f67946705..a80598439d 100644 --- a/libs/ardour/slavable_automation_control.cc +++ b/libs/ardour/slavable_automation_control.cc @@ -96,7 +96,7 @@ SlavableAutomationControl::get_value() const } } -bool +void SlavableAutomationControl::actually_set_value (double val, Controllable::GroupControlDisposition group_override) { val = std::max (std::min (val, (double)_desc.upper), (double)_desc.lower); @@ -112,12 +112,9 @@ SlavableAutomationControl::actually_set_value (double val, Controllable::GroupCo /* this sets the Evoral::Control::_user_value for us, which will be retrieved by AutomationControl::get_value () */ - if (AutomationControl::actually_set_value (val, group_override)) { - _session.set_dirty (); - return true; - } + AutomationControl::actually_set_value (val, group_override); - return false; + _session.set_dirty (); } void |