From 9e94dcd3201a1302962e2b798beaec12053f1ef6 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 5 Oct 2018 21:13:31 +0200 Subject: [PATCH] Fix zoom-to-allocation not working on selected allocations. --- server/TracyView.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index a07238ba..e13e4b49 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -7051,10 +7051,10 @@ void View::ListMemData( T ptr, T end, std::function DrawAddress, const { m_memoryAllocInfoWindow = arrIdx; } - if( ImGui::IsItemClicked( 2 ) ) - { - ZoomToRange( v->timeAlloc, v->timeFree >= 0 ? v->timeFree : m_worker.GetLastTime() ); - } + } + if( ImGui::IsItemClicked( 2 ) ) + { + ZoomToRange( v->timeAlloc, v->timeFree >= 0 ? v->timeFree : m_worker.GetLastTime() ); } if( ImGui::IsItemHovered() ) {