13
0

Clean-up.

git-svn-id: svn://localhost/ardour2/branches/3.0@5275 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2009-06-26 11:22:39 +00:00
parent 676f32d677
commit 30208b8771

View File

@ -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;