summaryrefslogtreecommitdiff
path: root/gtk2_ardour/step_editor.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-06-14 23:54:48 +0000
committerCarl Hetherington <carl@carlh.net>2011-06-14 23:54:48 +0000
commit0bf826eb4e0820a6da2a5f5b376ef0cd155d93d3 (patch)
tree132c9cb4641eeb06eda5d647d9436b0e6a899e0f /gtk2_ardour/step_editor.cc
parented76a3554c9291ff6dafe0e3334da1aea916f3c8 (diff)
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
Diffstat (limited to 'gtk2_ardour/step_editor.cc')
-rw-r--r--gtk2_ardour/step_editor.cc2
1 files changed, 1 insertions, 1 deletions
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;