From fa8c99fd74ae74c196a447d673d41e4274ac34bc Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 9 Apr 2021 20:22:04 +0200 Subject: [PATCH] Fix missing limit range checkbox in source view. This could happen if range was limited in such a way, that no sample was within the region. --- server/TracySourceView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index 8ec13d6a..987d7d73 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -1114,7 +1114,7 @@ void SourceView::RenderSymbolView( const Worker& worker, View& view ) } iptotalSrc = iptotalAsm; } - if( iptotalAsm > 0 ) + if( iptotalAsm > 0 || ( view.m_statRange.active && worker.GetSamplesForSymbol( m_baseAddr ) ) ) { ImGui::SameLine(); ImGui::Spacing();