From e28424899533cb3e4f7e057e925cd5392d005571 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 1 Mar 2019 01:30:56 +0100 Subject: [PATCH] Fix display of last message. --- server/TracyView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) {