Fix missing undo for record mute automation.
[ardour.git] / libs / ardour / automation_list.cc
index 9d8bfffc938e028dbba643b11d271102e4cee3b8..0651d018f3e0aa1548ba3f7c782b26a5ccccdd40 100644 (file)
@@ -191,6 +191,9 @@ AutomationList::set_automation_state (AutoState s)
 {
        if (s != _state) {
                _state = s;
+               if (s == Write) {
+                       _before = &get_state ();
+               }
                automation_state_changed (s); /* EMIT SIGNAL */
        }
 }