From 2e75990b6c67abf9632ecfe7b593cd9bfc9cee21 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 2 May 2020 00:42:05 +0200 Subject: [PATCH] Fix wrong indent. --- server/TracySourceView.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index 8bc2da8c..2a8b9457 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -2367,9 +2367,16 @@ void SourceView::RenderAsmLine( AsmLine& line, uint32_t ipcnt, uint32_t iptotal, if( line.regData[0] != 0 ) { - ImGui::SameLine(); - ImGui::Spacing(); - ImGui::SameLine(); + if( !line.params.empty() ) + { + ImGui::SameLine(); + ImGui::Spacing(); + ImGui::SameLine(); + } + else + { + ImGui::SameLine( 0, 0 ); + } TextColoredUnformatted( ImVec4( 0.5f, 0.5, 1, 1 ), "{" ); ImGui::SameLine( 0, 0 ); int idx = 0;