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
@ -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…
Reference in New Issue
Block a user