diff options
author | Ben Loftis <ben@glw.com> | 2012-11-28 17:07:35 +0000 |
---|---|---|
committer | Ben Loftis <ben@glw.com> | 2012-11-28 17:07:35 +0000 |
commit | f77763020b3450ad68d7155b84f940bd53225950 (patch) | |
tree | c51c0f26f6240ee393216b80b68f4d4ac999805a /gtk2_ardour/editor_selection.cc | |
parent | 613021bff17b10b10c0924ed3d83bc202f1725c3 (diff) |
edit operations should depend on the existence of an explicit range, NOT the mouse mode. this produces less confusion to the user. For an edit (such as delete) the selection should be based on this priority: explicit range selection, ojbect (region) selection, and then implicit range ( i.e. mouse-to-marker)
git-svn-id: svn://localhost/ardour2/branches/3.0@13563 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_selection.cc')
-rw-r--r-- | gtk2_ardour/editor_selection.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_selection.cc b/gtk2_ardour/editor_selection.cc index 3f88ddbce5..7ee19bdcec 100644 --- a/gtk2_ardour/editor_selection.cc +++ b/gtk2_ardour/editor_selection.cc @@ -1817,9 +1817,9 @@ Editor::get_edit_op_range (framepos_t& start, framepos_t& end) const framepos_t m; bool ignored; - /* in range mode, use any existing selection */ + /* if an explicit range exists, use it */ - if (mouse_mode == MouseRange && !selection->time.empty()) { + if (!selection->time.empty()) { /* we know that these are ordered */ start = selection->time.start(); end = selection->time.end_frame(); |