Fix crash on moving back beyond the region start in the step editor (#4113).
git-svn-id: svn://localhost/ardour2/branches/3.0@9735 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
ed76a3554c
commit
0bf826eb4e
@ -212,7 +212,7 @@ StepEditor::move_step_edit_beat_pos (Evoral::MusicalTime beats)
|
||||
step_edit_beat_pos = min (step_edit_beat_pos + beats,
|
||||
step_edit_region_view->frames_to_beats (step_edit_region->length()));
|
||||
} else if (beats < 0.0) {
|
||||
if (beats < step_edit_beat_pos) {
|
||||
if (-beats < step_edit_beat_pos) {
|
||||
step_edit_beat_pos += beats; // its negative, remember
|
||||
} else {
|
||||
step_edit_beat_pos = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user