summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-09-26 21:02:33 +0000
committerDavid Robillard <d@drobilla.net>2008-09-26 21:02:33 +0000
commit4d594d08e9d4f2725b298fafb7d93ee5af572edf (patch)
treec02ffc40ea484798293bb7a11af0d2c68262b8e4 /gtk2_ardour
parent5e7abcecc485cabbc0f2ce866f64ea966e4312f5 (diff)
Fix crash when setting automation mode on non-region automation tracks.
git-svn-id: svn://localhost/ardour2/branches/3.0@3812 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/automation_time_axis.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk2_ardour/automation_time_axis.cc b/gtk2_ardour/automation_time_axis.cc
index 5b6e490a25..299674dfdb 100644
--- a/gtk2_ardour/automation_time_axis.cc
+++ b/gtk2_ardour/automation_time_axis.cc
@@ -266,7 +266,8 @@ AutomationTimeAxisView::set_automation_state (AutoState state)
if (_control->list())
_control->alist()->set_automation_state(state);
}
- _view->set_automation_state (state);
+ if (_view)
+ _view->set_automation_state (state);
}
void