diff options
author | nick_m <mainsbridge@gmail.com> | 2015-06-17 22:19:21 +1000 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2015-06-17 22:19:21 +1000 |
commit | 80090f0f71256d65c876f83d3c6f3637cb9d44bb (patch) | |
tree | 5462cffb9ed531dd5c5a26919ca99a6a86e090c2 /libs/ardour/automation_list.cc | |
parent | 44790ebff017173ff6a593c1278bbe6cbab3fa4b (diff) |
Fix thinko in automation write undo.
- also allow saved automation list state to be touch or off if
actually in write mode.
Diffstat (limited to 'libs/ardour/automation_list.cc')
-rw-r--r-- | libs/ardour/automation_list.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/ardour/automation_list.cc b/libs/ardour/automation_list.cc index 7f7599f8ca..706a3330a7 100644 --- a/libs/ardour/automation_list.cc +++ b/libs/ardour/automation_list.cc @@ -276,7 +276,11 @@ AutomationList::state (bool full) if (_state != Write) { root->add_property ("state", auto_state_to_string (_state)); } else { - root->add_property ("state", auto_state_to_string (Off)); + if (_events.empty ()) { + root->add_property ("state", auto_state_to_string (Off)); + } else { + root->add_property ("state", auto_state_to_string (Touch)); + } } } else { /* never save anything but Off for automation state to a template */ |