put automation list into or out of Touch mode before adding an automation watch,...
authorPaul Davis <paul@linuxaudiosystems.com>
Wed, 14 Nov 2012 02:45:30 +0000 (02:45 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Wed, 14 Nov 2012 02:45:30 +0000 (02:45 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@13489 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/automation_control.cc

index 83b7db34be9afeb762a213a489f659a94a18a074..2208a7ca844523f29ce682766d8f14d428521de6 100644 (file)
@@ -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());
 }