Clean-up.
git-svn-id: svn://localhost/ardour2/branches/3.0@5275 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
676f32d677
commit
30208b8771
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user