Zone end times must be consistent.

This commit is contained in:
Bartosz Taudul 2023-03-23 01:23:41 +01:00
parent 40e08e9594
commit e0cc6edbfb
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -429,7 +429,7 @@ int TimelineItemThread::PreprocessZoneLevel( const TimelineContext& ctx, const V
auto next = it + 1; auto next = it + 1;
for(;;) for(;;)
{ {
next = std::lower_bound( next, zitend, nextTime, [] ( const auto& l, const auto& r ) { Adapter a; return (uint64_t)a(l).End() < (uint64_t)r; } ); next = std::lower_bound( next, zitend, nextTime, [this] ( const auto& l, const auto& r ) { Adapter a; return m_worker.GetZoneEnd( a(l) ) < r; } );
if( next == zitend ) break; if( next == zitend ) break;
auto prev = next - 1; auto prev = next - 1;
if( prev == it ) break; if( prev == it ) break;