13
0

prevent CD markers from being placed at or before session start (#7942)

This commit is contained in:
Paul Davis 2020-03-28 10:58:33 -06:00
parent ead883302f
commit 82eba76c8f

View File

@ -213,6 +213,13 @@ Location::set_start (samplepos_t s, bool force, bool allow_beat_recompute, const
}
}
if (is_cd_marker()) {
if (s <= _session.current_start_sample()) {
info << _("You cannot put a CD marker at the start of the session") << endmsg;
return -1;
}
}
if (is_mark()) {
if (_start != s) {
_start = s;