prevent CD markers from being placed at or before session start (#7942)
This commit is contained in:
parent
ead883302f
commit
82eba76c8f
@ -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 (is_mark()) {
|
||||||
if (_start != s) {
|
if (_start != s) {
|
||||||
_start = s;
|
_start = s;
|
||||||
|
Loading…
Reference in New Issue
Block a user