mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Don't show line number if it's 0.
This commit is contained in:
parent
937141b7e3
commit
3f7ab10323
@ -4804,7 +4804,14 @@ void View::DrawCallstackWindow()
|
|||||||
ImGui::TextWrapped( "%s", m_worker.GetString( frame->name ) );
|
ImGui::TextWrapped( "%s", m_worker.GetString( frame->name ) );
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
ImGui::PushTextWrapPos( 0.0f );
|
ImGui::PushTextWrapPos( 0.0f );
|
||||||
|
if( frame->line == 0 )
|
||||||
|
{
|
||||||
|
ImGui::TextDisabled( "%s", m_worker.GetString( frame->file ) );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
ImGui::TextDisabled( "%s:%i", m_worker.GetString( frame->file ), frame->line );
|
ImGui::TextDisabled( "%s:%i", m_worker.GetString( frame->file ), frame->line );
|
||||||
|
}
|
||||||
ImGui::PopTextWrapPos();
|
ImGui::PopTextWrapPos();
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user