From be4c868734e6440cf405a0ddd5ad17b6544f50c9 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 14 Nov 2012 02:45:30 +0000 Subject: put automation list into or out of Touch mode before adding an automation watch, so that ::touching() is correct when called from the add git-svn-id: svn://localhost/ardour2/branches/3.0@13489 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 83b7db34be..2208a7ca84 100644 --- a/libs/ardour/automation_control.cc +++ b/libs/ardour/automation_control.cc @@ -120,14 +120,14 @@ void AutomationControl::start_touch(double when) { set_touching (true); - AutomationWatch::instance().add_automation_watch (shared_from_this()); alist()->start_touch(when); + AutomationWatch::instance().add_automation_watch (shared_from_this()); } void AutomationControl::stop_touch(bool mark, double when) { set_touching (false); - AutomationWatch::instance().remove_automation_watch (shared_from_this()); alist()->stop_touch (mark, when); + AutomationWatch::instance().remove_automation_watch (shared_from_this()); } -- cgit v1.2.3