mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
fix thinko when searching for a segment descriptor by TimelineRange
This commit is contained in:
parent
b460ce6d6a
commit
12f40234ef
1 changed files with 1 additions and 2 deletions
|
|
@ -546,10 +546,9 @@ Source::get_segment_descriptor (TimelineRange const & range, SegmentDescriptor&
|
|||
/* Note: since we disallow overlapping segments, any overlap between
|
||||
the @p range and an existing segment counts as a match.
|
||||
*/
|
||||
|
||||
for (auto const & sd : segment_descriptors) {
|
||||
if (coverage_exclusive_ends (sd.position(), sd.position() + sd.extent(),
|
||||
segment.position(), segment.position() + segment.extent()) != Temporal::OverlapNone) {
|
||||
range.start(), range.end()) != Temporal::OverlapNone) {
|
||||
segment = sd;
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue