From 68ec7abdf4bc9ea48c70f73a53805906f78a47fc Mon Sep 17 00:00:00 2001 From: Terence Rokop Date: Sat, 26 Jun 2021 11:51:57 -0700 Subject: [PATCH] Move responsibility for spacing of combo box Thereby fix a spurious horizontal separator bar. --- server/TracyView.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 954ad150..7015e963 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -12273,9 +12273,6 @@ struct SrcLocZonesSlim void View::AccumulationModeComboBox() { - ImGui::SameLine(); - ImGui::Spacing(); - ImGui::SameLine(); ImGui::TextUnformatted( "Timing" ); ImGui::SameLine(); const char* accumulationModeTable = m_statMode == 0 ? "Self only\0With children\0Non-reentrant\0" : "Self only\0With children\0"; @@ -12287,9 +12284,6 @@ void View::AccumulationModeComboBox() int accumulationMode = static_cast( m_statAccumulationMode ); ImGui::Combo( "##accumulationMode", &accumulationMode, accumulationModeTable ); m_statAccumulationMode = static_cast( accumulationMode ); - ImGui::SameLine(); - ImGui::Spacing(); - ImGui::SameLine(); } void View::DrawStatistics() @@ -12509,6 +12503,9 @@ void View::DrawStatistics() ImGui::Spacing(); ImGui::SameLine(); TextFocused( "Visible zones:", RealToString( srcloc.size() ) ); + ImGui::SameLine(); + ImGui::Spacing(); + ImGui::SameLine(); AccumulationModeComboBox(); } else @@ -12533,6 +12530,9 @@ void View::DrawStatistics() } else { + ImGui::SameLine(); + ImGui::Spacing(); + ImGui::SameLine(); AccumulationModeComboBox(); } ImGui::SameLine();