From ff301419b3ca88635744984350cb1643f144deeb Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 13 Nov 2019 16:57:28 +0100 Subject: Fix automation-write when locating When locating while writing automation, begin a new write-pass, and add a guard point at the locate target position. NB set_in_write_pass takes 3 arguments: (write_enable, add_point, when) the last two default to false, 0. --- libs/ardour/automation_watch.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/ardour/automation_watch.cc') diff --git a/libs/ardour/automation_watch.cc b/libs/ardour/automation_watch.cc index 6d1bdd5143..f3e2ae5f81 100644 --- a/libs/ardour/automation_watch.cc +++ b/libs/ardour/automation_watch.cc @@ -175,7 +175,7 @@ AutomationWatch::timer () (*aw)->alist()->automation_write())); (*aw)->list()->set_in_write_pass (false); if ( (*aw)->alist()->automation_write() ) { - (*aw)->list()->set_in_write_pass (true, time); + (*aw)->list()->set_in_write_pass (true, true, time); } } } -- cgit v1.2.3