From 90202f76757a171b1d53f44a44a45e26fed03de4 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 11 Jan 2017 11:42:37 +0000 Subject: [PATCH] coverage frames must still be deleted when switching back to Overlay mode --- gtk2_ardour/audio_region_view.cc | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/gtk2_ardour/audio_region_view.cc b/gtk2_ardour/audio_region_view.cc index 08e5a565bf..2f4f4278eb 100644 --- a/gtk2_ardour/audio_region_view.cc +++ b/gtk2_ardour/audio_region_view.cc @@ -1615,17 +1615,14 @@ AudioRegionView::set_fade_visibility (bool yn) void AudioRegionView::update_coverage_frames (LayerDisplay d) { - if (d != Stacked) { - /* don't do coverage frames unless we're in stacked mode */ - return; - } - RegionView::update_coverage_frames (d); - if (fade_in_handle) { fade_in_handle->raise_to_top (); } - if (fade_out_handle) { fade_out_handle->raise_to_top (); } - if (fade_in_trim_handle) { fade_in_trim_handle->raise_to_top (); } - if (fade_out_trim_handle) { fade_out_trim_handle->raise_to_top (); } + if (d == Stacked) { + if (fade_in_handle) { fade_in_handle->raise_to_top (); } + if (fade_out_handle) { fade_out_handle->raise_to_top (); } + if (fade_in_trim_handle) { fade_in_trim_handle->raise_to_top (); } + if (fade_out_trim_handle) { fade_out_trim_handle->raise_to_top (); } + } } void