diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2008-05-06 02:37:18 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2008-05-06 02:37:18 +0000 |
commit | 734eb6e6eceb7b162e6d420fd4c8ddfe568a9238 (patch) | |
tree | d9ed59ff73e69286cfd8a2979622a1401e7a7c91 /gtk2_ardour/editor_ops.cc | |
parent | b9ad6710e0423e48a18c24da871f7b382964a757 (diff) |
fix from ryan scott whereby playhead gets stuck because frame{++,--} gets rounded back to frame
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3316 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_ops.cc')
-rw-r--r-- | gtk2_ardour/editor_ops.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index c30f3dbf0f..407947d90b 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -5545,8 +5545,8 @@ Editor::playhead_forward_to_grid () { if (!session) return; nframes64_t pos = playhead_cursor->current_frame; - if (pos < max_frames) { - pos++; + if (pos < max_frames - 1) { + pos += 2; snap_to_internal (pos, 1, false); session->request_locate (pos); } @@ -5558,8 +5558,8 @@ Editor::playhead_backward_to_grid () { if (!session) return; nframes64_t pos = playhead_cursor->current_frame; - if (pos > 1) { - pos--; + if (pos > 2) { + pos -= 2; snap_to_internal (pos, -1, false); session->request_locate (pos); } |