Fix crash on drag selection.
git-svn-id: svn://localhost/ardour2/branches/3.0@5569 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
d25742b28f
commit
789949faf9
@ -2718,17 +2718,17 @@ RubberbandSelectDrag::finished (GdkEvent* event, bool movement_occurred)
|
||||
|
||||
|
||||
Selection::Operation op = Keyboard::selection_type (event->button.state);
|
||||
bool commit;
|
||||
bool committed;
|
||||
|
||||
_editor->begin_reversible_command (_("rubberband selection"));
|
||||
|
||||
if (_grab_frame < _last_pointer_frame) {
|
||||
commit = _editor->select_all_within (_grab_frame, _last_pointer_frame, y1, y2, _editor->track_views, op);
|
||||
committed = _editor->select_all_within (_grab_frame, _last_pointer_frame, y1, y2, _editor->track_views, op);
|
||||
} else {
|
||||
commit = _editor->select_all_within (_last_pointer_frame, _grab_frame, y1, y2, _editor->track_views, op);
|
||||
committed = _editor->select_all_within (_last_pointer_frame, _grab_frame, y1, y2, _editor->track_views, op);
|
||||
}
|
||||
|
||||
if (commit) {
|
||||
if (!committed) {
|
||||
_editor->commit_reversible_command ();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user