diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-06-14 16:10:32 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-06-14 16:10:32 -0400 |
commit | 351b43d51b869d9fb925f1919cfc490d04283b20 (patch) | |
tree | fbde2003be113d05dce44391f0f5361c8a75f55f /gtk2_ardour/vca_time_axis.cc | |
parent | a8430131659f0007f0b98f21640d156b91626800 (diff) |
avoid crash after removing a VCA
Diffstat (limited to 'gtk2_ardour/vca_time_axis.cc')
-rw-r--r-- | gtk2_ardour/vca_time_axis.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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 } |