From 2c4fe22f5055b1911771a2f501de3da530aee40c Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Wed, 4 May 2022 16:00:08 +0000 Subject: [PATCH] Fix layout bug (https://github.com/wolfpld/tracy/issues/379) I had introduced this bug recently in https://github.com/wolfpld/tracy/pull/369 Fixes #379 --- server/TracySourceView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index fd749c34..9aa0968a 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -3091,8 +3091,8 @@ void SourceView::RenderLine( const Tokenizer::Line& line, int lineNum, const Add { RenderHwLinePart( cycles, retired, branchRetired, branchMiss, cacheRef, cacheMiss, 0, 0, 0, 0, ts ); } + ImGui::SameLine( 0, 0 ); } - ImGui::SameLine( 0, 0 ); const auto endPos = ImGui::GetCursorScreenPos(); const auto itemsWidth = ( endPos - startPos ).x; const auto fixedWidth = 17 * ts.x; @@ -3404,8 +3404,8 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr { RenderHwLinePart( cycles, retired, branchRetired, branchMiss, cacheRef, cacheMiss, 0, 0, 0, 0, ts ); } + ImGui::SameLine( 0, 0 ); } - ImGui::SameLine( 0, 0 ); const auto endPos = ImGui::GetCursorScreenPos(); const auto itemsWidth = ( endPos - startPos ).x; const auto fixedWidth = 17 * ts.x;