From 1ad248892dde3644e8a2e537854dd34df3a9642a Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 23 Dec 2025 14:03:54 +0100 Subject: [PATCH] Fix time range limits button id overlap. --- profiler/src/profiler/TracyView_Ranges.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/profiler/src/profiler/TracyView_Ranges.cpp b/profiler/src/profiler/TracyView_Ranges.cpp index 3fadcce4..6242111a 100644 --- a/profiler/src/profiler/TracyView_Ranges.cpp +++ b/profiler/src/profiler/TracyView_Ranges.cpp @@ -24,6 +24,7 @@ void View::DrawRanges() void View::DrawRangeEntry( Range& range, const char* label, uint32_t color, const char* popupLabel, int id ) { + ImGui::PushID( id ); SmallColorBox( color ); ImGui::SameLine(); if( SmallCheckbox( label, &range.active ) ) @@ -94,6 +95,7 @@ void View::DrawRangeEntry( Range& range, const char* label, uint32_t color, cons if( SmallButtonDisablable( ICON_FA_MEMORY " Copy from memory", m_memInfo.range.min == 0 && m_memInfo.range.max == 0 ) ) range = m_memInfo.range; } } + ImGui::PopID(); } void View::HandleRange( Range& range, int64_t timespan, const ImVec2& wpos, float w )