From ef3c27bc1de3b5131f534906dd8beac63349adea Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 31 May 2014 14:16:15 +0200 Subject: session fade-region-visible is for fades - not controls --- gtk2_ardour/audio_region_view.cc | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'gtk2_ardour/audio_region_view.cc') diff --git a/gtk2_ardour/audio_region_view.cc b/gtk2_ardour/audio_region_view.cc index 492def9ef0..bab9a97007 100644 --- a/gtk2_ardour/audio_region_view.cc +++ b/gtk2_ardour/audio_region_view.cc @@ -1470,17 +1470,19 @@ void AudioRegionView::set_fade_visibility (bool yn) { if (yn) { - if (fade_in_handle) { fade_in_handle->show(); } - if (fade_out_handle) { fade_out_handle->show(); } - if (fade_in_trim_handle) { fade_in_trim_handle->show(); } - if (fade_out_trim_handle) { fade_out_trim_handle->show(); } - if (start_xfade_rect) { start_xfade_rect->set_outline(true); } - if (end_xfade_rect) { end_xfade_rect->set_outline(true); } - } else { + if (start_xfade_curve) { start_xfade_curve->show (); } + if (end_xfade_curve) { end_xfade_curve->show (); } + if (start_xfade_rect) { start_xfade_rect->show (); } + if (end_xfade_rect) { end_xfade_rect->show (); } + } else { + if (start_xfade_curve) { start_xfade_curve->hide(); } + if (end_xfade_curve) { end_xfade_curve->hide(); } if (fade_in_handle) { fade_in_handle->hide(); } if (fade_out_handle) { fade_out_handle->hide(); } if (fade_in_trim_handle) { fade_in_trim_handle->hide(); } if (fade_out_trim_handle) { fade_out_trim_handle->hide(); } + if (start_xfade_rect) { start_xfade_rect->hide (); } + if (end_xfade_rect) { end_xfade_rect->hide (); } if (start_xfade_rect) { start_xfade_rect->set_outline (false); } if (end_xfade_rect) { end_xfade_rect->set_outline (false); } } -- cgit v1.2.3