Fix rendering of lines with no local samples.

This commit is contained in:
Bartosz Taudul 2021-04-18 21:13:57 +02:00
parent 66ef71cf7b
commit c7da9b1092
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -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 ) );