diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 8ba354f1..16797e0d 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -1970,7 +1970,7 @@ void View::DrawZones() offset += ostep * 0.2f; auto msgit = std::lower_bound( v->messages.begin(), v->messages.end(), m_zvStart, [] ( const auto& lhs, const auto& rhs ) { return lhs->time < rhs; } ); - auto msgend = std::lower_bound( msgit, v->messages.end(), m_zvEnd, [] ( const auto& lhs, const auto& rhs ) { return lhs->time < rhs; } ); + auto msgend = std::lower_bound( msgit, v->messages.end(), m_zvEnd+1, [] ( const auto& lhs, const auto& rhs ) { return lhs->time < rhs; } ); if( !m_drawEmptyLabels && showFull && depth == 0 && msgit == msgend && crash.thread != v->id ) {