From: nick_m Date: Fri, 2 Oct 2015 15:18:59 +0000 (+1000) Subject: Automation - fix occasional inverted bool state after write. X-Git-Tag: 4.5~658 X-Git-Url: https://main.carlh.net/gitweb/?p=ardour.git;a=commitdiff_plain;h=16480001082168a25af12239bb43baa7991a99c0 Automation - fix occasional inverted bool state after write. --- diff --git a/libs/ardour/automatable.cc b/libs/ardour/automatable.cc index 1c72f202b2..cfe2d7a853 100644 --- a/libs/ardour/automatable.cc +++ b/libs/ardour/automatable.cc @@ -402,13 +402,13 @@ Automatable::transport_stopped (framepos_t now) } l->write_pass_finished (now, Config->get_automation_thinning_factor()); - if (l->automation_playback()) { - c->set_value(c->list()->eval(now)); - } - if (l->automation_state() == Write) { l->set_automation_state (Touch); } + + if (l->automation_playback()) { + c->set_value(c->list()->eval(now)); + } } }