diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-04-19 13:02:40 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-05-31 15:30:41 -0400 |
commit | 8ee660356181f4eb66e4abcb30d52f55ae267b80 (patch) | |
tree | 45f6906a6b44349c7c217d1e624b4f9495494f12 /libs/ardour/automation_control.cc | |
parent | 01aefd236a7c87fa1798334b579be28eaa832afd (diff) |
design changes to various SlavableAutomationControls to make it possible to get the logic right for boolean controls
Diffstat (limited to 'libs/ardour/automation_control.cc')
-rw-r--r-- | libs/ardour/automation_control.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/ardour/automation_control.cc b/libs/ardour/automation_control.cc index 97765a7070..8ffbd2d7df 100644 --- a/libs/ardour/automation_control.cc +++ b/libs/ardour/automation_control.cc @@ -115,12 +115,14 @@ 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 = Control::user_double (); Control::set_double (value, _session.transport_frame(), to_list); AutomationType at = (AutomationType) _parameter.type(); - std::cerr << "++++ Changed (" << enum_2_string (at) << ", " << enum_2_string (gcd) << ") = " << value << " @ " << this << std::endl; + std::cerr << "++++ Changed (" << enum_2_string (at) << ", " << enum_2_string (gcd) << ") = " << value + << " (was " << old_value << ") @ " << this << std::endl; Changed (true, gcd); } |