From 30208b8771ba6320cbaa7f7287ba415d12265d92 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 26 Jun 2009 11:22:39 +0000 Subject: [PATCH] Clean-up. git-svn-id: svn://localhost/ardour2/branches/3.0@5275 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor_ops.cc | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index ac9fa89256..325ac07922 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -5070,19 +5070,15 @@ Editor::set_fade_length (bool in) { RegionSelection rs; - get_regions_for_action (rs); + get_regions_for_action (rs, true); + + if (rs.empty()) { + return; + } /* we need a region to measure the offset from the start */ - RegionView* rv; - - if (!rs.empty()) { - rv = rs.front(); - } else if (entered_regionview) { - rv = entered_regionview; - } else { - return; - } + RegionView* rv = rs.front (); nframes64_t pos = get_preferred_edit_position(); nframes64_t len;