mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
Patch from Lincoln to fix uncommitted reversible command during rubberband selection (#3729).
git-svn-id: svn://localhost/ardour2/branches/3.0@8563 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
d48489ec1b
commit
7af9c8ae78
3 changed files with 7 additions and 12 deletions
|
|
@ -3044,15 +3044,12 @@ RubberbandSelectDrag::finished (GdkEvent* event, bool movement_occurred)
|
|||
_editor->begin_reversible_command (_("rubberband selection"));
|
||||
|
||||
if (grab_frame() < last_pointer_frame()) {
|
||||
committed = _editor->select_all_within (grab_frame(), last_pointer_frame() - 1, y1, y2, _editor->track_views, op, false);
|
||||
_editor->select_all_within (grab_frame(), last_pointer_frame() - 1, y1, y2, _editor->track_views, op, false);
|
||||
} else {
|
||||
committed = _editor->select_all_within (last_pointer_frame(), grab_frame() - 1, y1, y2, _editor->track_views, op, false);
|
||||
}
|
||||
|
||||
if (!committed) {
|
||||
_editor->commit_reversible_command ();
|
||||
_editor->select_all_within (last_pointer_frame(), grab_frame() - 1, y1, y2, _editor->track_views, op, false);
|
||||
}
|
||||
|
||||
_editor->commit_reversible_command ();
|
||||
} else {
|
||||
if (!getenv("ARDOUR_SAE")) {
|
||||
_editor->selection->clear_tracks();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue