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.
This commit is contained in:
Bartosz Taudul 2021-04-09 20:22:04 +02:00
parent 0476e851ff
commit fa8c99fd74
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

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