From 6feb017cbe6c72f03f2983ed9650a7347481b128 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 10 Aug 2020 19:03:32 +0200 Subject: [PATCH] Also display statistics time range if symbol view is open. --- server/TracyView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index f9611273..23168330 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -3232,7 +3232,7 @@ void View::DrawZones() draw->AddLine( ImVec2( wpos.x + px1, linepos.y ), ImVec2( wpos.x + px1, linepos.y + lineh ), m_findZone.range.hiMax ? 0x9988DD88 : 0x3388DD88, m_findZone.range.hiMax ? 2 : 1 ); } - if( m_statRange.active && ( m_showStatistics || m_showRanges ) ) + if( m_statRange.active && ( m_showStatistics || m_showRanges || ( m_sourceViewFile && m_sourceView->IsSymbolView() ) ) ) { const auto px0 = ( m_statRange.min - m_vd.zvStart ) * pxns; const auto px1 = std::max( px0 + std::max( 1.0, pxns * 0.5 ), ( m_statRange.max - m_vd.zvStart ) * pxns );