From 3ee91b909fe96b8cad27dbd1450dc24d4825d0b2 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 23 Jan 2022 14:51:48 +0100 Subject: [PATCH] Unify comparison for accumulation mode combo box. --- server/TracyView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index e546cc92..e5b21822 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -12692,9 +12692,9 @@ void View::AccumulationModeComboBox() { ImGui::TextUnformatted( "Timing" ); ImGui::SameLine(); - const char* accumulationModeTable = m_statMode == 0 ? "Self only\0With children\0Non-reentrant\0" : "Self only\0With children\0"; + const char* accumulationModeTable = m_statMode == 1 ? "Self only\0With children\0" : "Self only\0With children\0Non-reentrant\0"; ImGui::SetNextItemWidth( ImGui::CalcTextSize( "Non-reentrant" ).x + ImGui::GetTextLineHeight() * 2 ); - if ( m_statMode != 0 && m_statAccumulationMode == AccumulationMode::NonReentrantChildren ) + if( m_statMode == 1 && m_statAccumulationMode == AccumulationMode::NonReentrantChildren ) { m_statAccumulationMode = AccumulationMode::SelfOnly; }