Fix crash changing automation state of MIDI 'automation' tracks.

git-svn-id: svn://localhost/ardour2/branches/3.0@5888 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2009-10-23 04:54:10 +00:00
parent e76d325bd0
commit e1ca7942c8

View file

@ -253,7 +253,9 @@ void
AutomationTimeAxisView::set_automation_state (AutoState state)
{
if (!ignore_state_request) {
_automatable->set_parameter_automation_state (_control->parameter(), state);
if (_automatable) {
_automatable->set_parameter_automation_state (_control->parameter(), state);
}
#if 0
if (_route == _automatable) { // This is a time axis for route (not region) automation
_route->set_parameter_automation_state (_control->parameter(), state);