diff --git a/server/TracyView.cpp b/server/TracyView.cpp index c29c77dd..7099864d 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -4804,7 +4804,14 @@ void View::DrawCallstackWindow() ImGui::TextWrapped( "%s", m_worker.GetString( frame->name ) ); ImGui::NextColumn(); ImGui::PushTextWrapPos( 0.0f ); - ImGui::TextDisabled( "%s:%i", m_worker.GetString( frame->file ), frame->line ); + 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::PopTextWrapPos(); ImGui::NextColumn(); }