13
0

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:
Ben Loftis 2022-11-08 20:14:45 -06:00
parent bae336129f
commit f8ea94e86c

View File

@ -2455,7 +2455,7 @@ Editor::jump_forward_to_mark ()
return; 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)) { if (pos == timepos_t::max (Temporal::AudioTime)) {
return; return;