From 5640f820d3f258fc35fe212ce6ce0b84b14fe165 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 15 Mar 2021 19:38:02 -0600 Subject: [PATCH] exclude xrun markers from those returned by Locations::marks_either_side() Surveying the uses of ::markers_either_side() makes it clear that xrun markers are never relevant to the callers. --- libs/ardour/location.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/location.cc b/libs/ardour/location.cc index a83963afe9..6bed11e38f 100644 --- a/libs/ardour/location.cc +++ b/libs/ardour/location.cc @@ -1368,7 +1368,7 @@ Locations::marks_either_side (samplepos_t const sample, samplepos_t& before, sam std::list positions; for (LocationList::const_iterator i = locs.begin(); i != locs.end(); ++i) { - if (((*i)->is_auto_loop() || (*i)->is_auto_punch())) { + if (((*i)->is_auto_loop() || (*i)->is_auto_punch()) || (*i)->is_xrun()) { continue; }