mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Don't try to display assembly line counts if no symbol is selected.
This commit is contained in:
parent
6d08f0a196
commit
1c0ec60b23
@ -599,6 +599,8 @@ void SourceView::RenderLine( const Line& line, int lineNum, uint32_t ipcnt, uint
|
|||||||
TextDisabledUnformatted( buf );
|
TextDisabledUnformatted( buf );
|
||||||
ImGui::SameLine( 0, ty );
|
ImGui::SameLine( 0, ty );
|
||||||
|
|
||||||
|
if( m_symAddr != 0 )
|
||||||
|
{
|
||||||
const auto stw = ImGui::CalcTextSize( " " ).x;
|
const auto stw = ImGui::CalcTextSize( " " ).x;
|
||||||
uint32_t match = 0;
|
uint32_t match = 0;
|
||||||
auto addresses = worker.GetAddressesForLocation( m_fileStringIdx, lineNum );
|
auto addresses = worker.GetAddressesForLocation( m_fileStringIdx, lineNum );
|
||||||
@ -628,6 +630,7 @@ void SourceView::RenderLine( const Line& line, int lineNum, uint32_t ipcnt, uint
|
|||||||
{
|
{
|
||||||
ImGui::ItemSize( ImVec2( stw * 8, ty ), 0 );
|
ImGui::ItemSize( ImVec2( stw * 8, ty ), 0 );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ImGui::SameLine( 0, ty );
|
ImGui::SameLine( 0, ty );
|
||||||
ImGui::TextUnformatted( line.begin, line.end );
|
ImGui::TextUnformatted( line.begin, line.end );
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user