diff options
author | Carl Hetherington <carl@carlh.net> | 2009-06-26 11:22:39 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-06-26 11:22:39 +0000 |
commit | 30208b8771ba6320cbaa7f7287ba415d12265d92 (patch) | |
tree | 47216f262e0d08d027977cad8e9da49249018f77 /gtk2_ardour | |
parent | 676f32d6777c8125addd3b3d1b377865fc8a2503 (diff) |
Clean-up.
git-svn-id: svn://localhost/ardour2/branches/3.0@5275 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/editor_ops.cc | 16 |
1 files 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,20 +5070,16 @@ Editor::set_fade_length (bool in) { RegionSelection rs; - get_regions_for_action (rs); - - /* we need a region to measure the offset from the start */ - - RegionView* rv; + get_regions_for_action (rs, true); - if (!rs.empty()) { - rv = rs.front(); - } else if (entered_regionview) { - rv = entered_regionview; - } else { + if (rs.empty()) { return; } + /* we need a region to measure the offset from the start */ + + RegionView* rv = rs.front (); + nframes64_t pos = get_preferred_edit_position(); nframes64_t len; char* cmd; |