mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-01 11:27:45 +01:00
Fix jump_forward_to_mark in the case where you are already located on a marker
* first_mark_after() correctly expects a timepos_t to compare with locations
* BUT the playhead position is always in samples, by definition
* in many cases this meant the 'next' marker was the one you are already located at
* also remove the slight distinction between playhead cursor and actual play position
(shouldn't matter, but...)
This commit is contained in:
parent
bae336129f
commit
f8ea94e86c
1 changed files with 1 additions and 1 deletions
|
|
@ -2455,7 +2455,7 @@ Editor::jump_forward_to_mark ()
|
|||
return;
|
||||
}
|
||||
|
||||
timepos_t pos = _session->locations()->first_mark_after (timepos_t (_playhead_cursor->current_sample()));
|
||||
timepos_t pos = _session->locations()->first_mark_after (timepos_t (_session->transport_sample()+1));
|
||||
|
||||
if (pos == timepos_t::max (Temporal::AudioTime)) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue