From 22fd92f97c5ff2bb1890a3b88085bed5c035498e Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 28 Jun 2016 00:17:46 +0200 Subject: tweak b7e645ec6, use session start/end position --- libs/ardour/automation_control.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libs/ardour/automation_control.cc') diff --git a/libs/ardour/automation_control.cc b/libs/ardour/automation_control.cc index e0ebc00062..0d5c2ecc2d 100644 --- a/libs/ardour/automation_control.cc +++ b/libs/ardour/automation_control.cc @@ -155,7 +155,8 @@ AutomationControl::set_automation_state (AutoState as) AutomationWatch::instance().add_automation_watch (shared_from_this()); } else if (as == Touch) { if (alist()->empty()) { - Control::set_double (val, _session.transport_frame(), true); + Control::set_double (val, _session.current_start_frame (), true); + Control::set_double (val, _session.current_end_frame (), true); Changed (true, Controllable::NoGroup); } if (!touching()) { -- cgit v1.2.3