diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-11-14 02:45:30 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-11-14 02:45:30 +0000 |
commit | be4c868734e6440cf405a0ddd5ad17b6544f50c9 (patch) | |
tree | 72ef6df6a4def8e756b84b2ac57d1ced2340a2e2 /libs/ardour/automation_control.cc | |
parent | 605519009434e022b5f6bb5c59d074cfe4b5fe20 (diff) |
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
Diffstat (limited to 'libs/ardour/automation_control.cc')
-rw-r--r-- | libs/ardour/automation_control.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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()); } |