diff --git a/profiler/src/profiler/TracyImGui.cpp b/profiler/src/profiler/TracyImGui.cpp index 528d86c3..62b54bba 100644 --- a/profiler/src/profiler/TracyImGui.cpp +++ b/profiler/src/profiler/TracyImGui.cpp @@ -152,8 +152,10 @@ bool PrintTextWrapped( const char* text, const char* end ) auto fwLen = ImGui::CalcTextSize( text, firstWord ).x; if( fwLen > left ) { + const auto prev = left; ImGui::NewLine(); left = ImGui::GetContentRegionAvail().x; + if( left == prev ) ImGui::SameLine( 0, 0 ); } auto endLine = ImGui::GetFont()->CalcWordWrapPosition( fontSize, text, end, left );