diff options
author | David Robillard <d@drobilla.net> | 2009-10-23 04:54:10 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-10-23 04:54:10 +0000 |
commit | e1ca7942c80597325a7f01153b809c4956757dce (patch) | |
tree | f5adfabfdbc959ddaa23aa87c41b794bdfbad1e9 /gtk2_ardour/automation_time_axis.cc | |
parent | e76d325bd00be4cb04dbbf96a6afb1927cf04a31 (diff) |
Fix crash changing automation state of MIDI 'automation' tracks.
git-svn-id: svn://localhost/ardour2/branches/3.0@5888 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_time_axis.cc')
-rw-r--r-- | gtk2_ardour/automation_time_axis.cc | 4 |
1 files changed, 3 insertions, 1 deletions
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); |