From e1ca7942c80597325a7f01153b809c4956757dce Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 23 Oct 2009 04:54:10 +0000 Subject: Fix crash changing automation state of MIDI 'automation' tracks. git-svn-id: svn://localhost/ardour2/branches/3.0@5888 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/automation_time_axis.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gtk2_ardour') diff --git a/gtk2_ardour/automation_time_axis.cc b/gtk2_ardour/automation_time_axis.cc index e18ab441bc..e6186387fe 100644 --- a/gtk2_ardour/automation_time_axis.cc +++ b/gtk2_ardour/automation_time_axis.cc @@ -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); -- cgit v1.2.3