From c7da9b1092d2e20f9c38535f03a192b01b3d8481 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 18 Apr 2021 21:13:57 +0200 Subject: [PATCH] Fix rendering of lines with no local samples. --- server/TracySourceView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index 20b1bce1..f4e8779e 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -2494,7 +2494,7 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr if( iptotal.local + iptotal.ext != 0 ) { - if( m_childCalls && ipcnt.local + ipcnt.ext == 0 || ipcnt.local == 0 ) + if( ( m_childCalls && ipcnt.local + ipcnt.ext == 0 ) || ( !m_childCalls && ipcnt.local == 0 ) ) { const auto ts = ImGui::CalcTextSize( " " ); ImGui::ItemSize( ImVec2( 7 * ts.x, ts.y ) );