From 2931c83442a2fca35953cb20c2cfc8b2857a0a89 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 18 Mar 2019 18:32:45 +0100 Subject: [PATCH] Lookup further at the beginning of the collapsed zones area. --- server/TracyView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index d0a6aad4..55ec0c87 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -2350,7 +2350,7 @@ int View::DrawZoneLevel( const Vector& vec, bool hover, double pxns, for(;;) { const auto prevIt = it; - it = std::lower_bound( it, zitend, rend + nspx, [] ( const auto& l, const auto& r ) { return (uint64_t)l->end < (uint64_t)r; } ); + it = std::lower_bound( it, zitend, std::max( rend + nspx, end + MinVisSize ), [] ( const auto& l, const auto& r ) { return (uint64_t)l->end < (uint64_t)r; } ); if( it == prevIt ) ++it; num += std::distance( prevIt, it ); if( it == zitend ) break;