13
0

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.
This commit is contained in:
Paul Davis 2021-03-15 19:38:02 -06:00
parent dfa9f92e53
commit 5640f820d3

View File

@ -1368,7 +1368,7 @@ Locations::marks_either_side (samplepos_t const sample, samplepos_t& before, sam
std::list<samplepos_t> positions; std::list<samplepos_t> positions;
for (LocationList::const_iterator i = locs.begin(); i != locs.end(); ++i) { 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; continue;
} }