summaryrefslogtreecommitdiff
path: root/libs/ardour/automation_control.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-10-14 11:16:42 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2016-10-14 11:42:41 -0400
commit92f1eb6be9df2ad0194872ea40c776b6c1983d08 (patch)
treed792d2f8f979277b52bfa60c8206a51823a83046 /libs/ardour/automation_control.cc
parenta4ad0a90d124f1e1b6d84fdf221d948ea3733f79 (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/automation_control.cc')
-rw-r--r--libs/ardour/automation_control.cc11
1 files changed, 3 insertions, 8 deletions
diff --git a/libs/ardour/automation_control.cc b/libs/ardour/automation_control.cc
index 03871cf07c..9a6590ebe8 100644
--- a/libs/ardour/automation_control.cc
+++ b/libs/ardour/automation_control.cc
@@ -116,11 +116,11 @@ AutomationControl::set_value (double val, PBD::Controllable::GroupControlDisposi
* (e.g. record if necessary, etc.)
* @param value `user' value
*/
-bool
+void
AutomationControl::actually_set_value (double value, PBD::Controllable::GroupControlDisposition gcd)
{
bool to_list = _list && boost::dynamic_pointer_cast<AutomationList>(_list)->automation_write();
- const double old_value = get_value ();
+ //const double old_value = Control::user_double ();
Control::set_double (value, _session.transport_frame(), to_list);
@@ -128,12 +128,7 @@ AutomationControl::actually_set_value (double value, PBD::Controllable::GroupCon
//std::cerr << "++++ Changed (" << enum_2_string (at) << ", " << enum_2_string (gcd) << ") = " << value
//<< " (was " << old_value << ") @ " << this << std::endl;
- if (old_value != value) {
- Changed (true, gcd);
- return true;
- }
-
- return false;
+ Changed (true, gcd);
}
void