Fix positions before start and after end

This commit is contained in:
Len Ovens 2021-05-18 14:27:12 -07:00
parent 35022caf4f
commit 0130f19e26

View file

@ -463,7 +463,11 @@ OSCGlobalObserver::mark_update ()
break;
}
}
if (prev == next) {
if (_last_sample > lm[lm.size() - 1].when) {
send_str = string_compose ("%1 <-", lm[lm.size() - 1].label);
} else if (_last_sample < lm[0].when) {
send_str = string_compose ("-> %1", lm[0].label);
} else if (prev == next) {
send_str = lm[prev].label;
prev_mark = lm[prev].when;
next_mark = lm[next].when;