diff options
author | Robin Gareus <robin@gareus.org> | 2014-05-31 14:16:15 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-05-31 14:16:15 +0200 |
commit | ef3c27bc1de3b5131f534906dd8beac63349adea (patch) | |
tree | ee0133f33dc398935faa033c7350fd3a2dd5d42b /gtk2_ardour/audio_region_view.cc | |
parent | 2342b7d611d623d1e3a1e067decd8bce5672996a (diff) |
session fade-region-visible is for fades - not controls
Diffstat (limited to 'gtk2_ardour/audio_region_view.cc')
-rw-r--r-- | gtk2_ardour/audio_region_view.cc | 16 |
1 files changed, 9 insertions, 7 deletions
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); } } |