Mackie control: non-existent controls zero pot ring fix.
[ardour.git] / libs / ardour / automatable.cc
index 69e8c70741f47ad9f5090ea5f5e38a0e7f655b6d..9670f68689355d838804025beb2daae8cff6204c 100644 (file)
@@ -365,7 +365,7 @@ Automatable::transport_located (framepos_t now)
                         boost::shared_ptr<AutomationList> l
                                = boost::dynamic_pointer_cast<AutomationList>(c->list());
 
-                       if (l && l->automation_state () == Write) {
+                       if (l) {
                                l->start_write_pass (now);
                        }
                }
@@ -398,9 +398,7 @@ Automatable::transport_stopped (framepos_t now)
 
                l->stop_touch (true, now);
 
-               if (list_did_write) {
-                       c->commit_transaction ();
-               }
+               c->commit_transaction (list_did_write);
 
                l->write_pass_finished (now, Config->get_automation_thinning_factor ());