From 351b43d51b869d9fb925f1919cfc490d04283b20 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 14 Jun 2016 16:10:32 -0400 Subject: avoid crash after removing a VCA --- gtk2_ardour/vca_time_axis.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk2_ardour') diff --git a/gtk2_ardour/vca_time_axis.cc b/gtk2_ardour/vca_time_axis.cc index 0c77fd66f8..becc14dce9 100644 --- a/gtk2_ardour/vca_time_axis.cc +++ b/gtk2_ardour/vca_time_axis.cc @@ -308,13 +308,13 @@ VCATimeAxisView::set_height (uint32_t h, TrackHeightMode m) bool VCATimeAxisView::marked_for_display () const { - return !_vca->presentation_info().hidden(); + return _vca && !_vca->presentation_info().hidden(); } bool VCATimeAxisView::set_marked_for_display (bool yn) { - if (yn == _vca->presentation_info().hidden()) { + if (_vca && (yn == _vca->presentation_info().hidden())) { _vca->presentation_info().set_hidden (!yn); return true; // things changed } -- cgit v1.2.3