From 82eba76c8f61573ea27a8a584a103b14746f47f7 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 28 Mar 2020 10:58:33 -0600 Subject: [PATCH] prevent CD markers from being placed at or before session start (#7942) --- libs/ardour/location.cc | 7 +++++++ 1 file changed, 7 insertions(+) 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;