diff options
author | David Robillard <d@drobilla.net> | 2014-08-31 18:52:37 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-08-31 18:57:22 -0400 |
commit | 34c1465cf9645fce4e05299f6e5a2e7af19a0d3e (patch) | |
tree | 112bed277ad89ebeb0e517e72e668d250a23e862 /libs/ardour/automation_control.cc | |
parent | b012f2cd1825d2e25e706c35a61b8fbd0ee1af41 (diff) |
Fix crash when changing automation mode for MIDI track control automation.
Also some work towards tolerating automation controls with no automation list,
towards actually doing something for these cases, though not required just to
fix this crash (MidiTrack::set_parameter_automation_state() avoids those
paths).
Diffstat (limited to 'libs/ardour/automation_control.cc')
-rw-r--r-- | libs/ardour/automation_control.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/automation_control.cc b/libs/ardour/automation_control.cc index 355b0176ce..2bb694c7e5 100644 --- a/libs/ardour/automation_control.cc +++ b/libs/ardour/automation_control.cc @@ -85,7 +85,7 @@ AutomationControl::set_list (boost::shared_ptr<Evoral::ControlList> list) void AutomationControl::set_automation_state (AutoState as) { - if (as != alist()->automation_state()) { + if (_list && as != alist()->automation_state()) { alist()->set_automation_state (as); |