Fix zoom-to-allocation not working on selected allocations.

This commit is contained in:
Bartosz Taudul 2018-10-05 21:13:31 +02:00
parent 1a8b184d10
commit 9e94dcd320

View File

@ -7051,11 +7051,11 @@ void View::ListMemData( T ptr, T end, std::function<void(T&)> DrawAddress, const
{
m_memoryAllocInfoWindow = arrIdx;
}
}
if( ImGui::IsItemClicked( 2 ) )
{
ZoomToRange( v->timeAlloc, v->timeFree >= 0 ? v->timeFree : m_worker.GetLastTime() );
}
}
if( ImGui::IsItemHovered() )
{
m_memoryAllocHover = arrIdx;