From c3ccff8d059735df1f98d3c4db204b00f3498c49 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 14 Jul 2012 15:42:10 +0000 Subject: fix up part of the remaining details with automation, so that touch/write over-writes work correctly git-svn-id: svn://localhost/ardour2/branches/3.0@13041 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/automation_control.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/ardour/automation_control.cc') diff --git a/libs/ardour/automation_control.cc b/libs/ardour/automation_control.cc index 1fde567e28..237d51a9d3 100644 --- a/libs/ardour/automation_control.cc +++ b/libs/ardour/automation_control.cc @@ -60,18 +60,18 @@ void AutomationControl::set_value (double value) { bool to_list = _list && ((AutomationList*)_list.get())->automation_write(); + bool erase_since_last = _session.transport_rolling(); if (to_list && parameter().toggled()) { // store the previous value just before this so any // interpolation works right - bool erase_since_last = _session.transport_rolling(); _list->add (get_double(), _session.transport_frame()-1, erase_since_last); } - Control::set_double (value, to_list, _session.transport_frame()); + Control::set_double (value, _session.transport_frame(), to_list, erase_since_last); Changed(); /* EMIT SIGNAL */ } -- cgit v1.2.3