summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libs/ardour/location.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/ardour/location.cc b/libs/ardour/location.cc
index de70abb6c5..221bb05020 100644
--- a/libs/ardour/location.cc
+++ b/libs/ardour/location.cc
@@ -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;