1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Fix out-of-bounds reference.

This commit is contained in:
Bartosz Taudul
2023-02-24 23:06:12 +01:00
parent b3186a9b7d
commit 40b648655b
+1 -1
View File
@@ -1835,7 +1835,7 @@ void View::DrawFindZone()
bool empty = true;
const auto firstTime = samplesBegin->time.Val();
const auto lastTime = samplesEnd->time.Val();
const auto lastTime = samplesEnd == samples->end() ? m_worker.GetLastTime() : samplesEnd->time.Val();
for( auto& g: selectedGroups )
{
const auto& zones = g.group->zones;