Don't show line number if it's 0.

This commit is contained in:
Bartosz Taudul 2018-06-21 13:26:04 +02:00
parent 937141b7e3
commit 3f7ab10323

View File

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