mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-15 09:55:55 +01:00
prevent CD markers from being placed at or before session start (#7942)
This commit is contained in:
parent
ead883302f
commit
82eba76c8f
1 changed files with 7 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue