From 0bf826eb4e0820a6da2a5f5b376ef0cd155d93d3 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 14 Jun 2011 23:54:48 +0000 Subject: [PATCH] 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 --- gtk2_ardour/step_editor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/step_editor.cc b/gtk2_ardour/step_editor.cc index 868787c890..51052d0025 100644 --- a/gtk2_ardour/step_editor.cc +++ b/gtk2_ardour/step_editor.cc @@ -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; -- 2.30.2