diff --git a/profiler/src/profiler/TracyView_Options.cpp b/profiler/src/profiler/TracyView_Options.cpp index fba99e6b..3a655807 100644 --- a/profiler/src/profiler/TracyView_Options.cpp +++ b/profiler/src/profiler/TracyView_Options.cpp @@ -148,9 +148,12 @@ void View::DrawOptions() { ImGui::PushID( idx++ ); SmallCheckbox( m_worker.GetSectionCategoryDescription( v.first ), &Vis( v.first ) ); - ImGui::SameLine(); auto it = sections.find( v.first ); - if( it != sections.end() ) ImGui::TextDisabled( "(%s)", RealToString( it->second.size() ) ); + if( it != sections.end() ) + { + ImGui::SameLine(); + ImGui::TextDisabled( "(%s)", RealToString( it->second.size() ) ); + } ImGui::PopID(); } ImGui::TreePop();