mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-12 19:31:47 +00:00
Fix out-of-bounds reference.
This commit is contained in:
parent
b3186a9b7d
commit
40b648655b
@ -1835,7 +1835,7 @@ void View::DrawFindZone()
|
|||||||
|
|
||||||
bool empty = true;
|
bool empty = true;
|
||||||
const auto firstTime = samplesBegin->time.Val();
|
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 )
|
for( auto& g: selectedGroups )
|
||||||
{
|
{
|
||||||
const auto& zones = g.group->zones;
|
const auto& zones = g.group->zones;
|
||||||
|
Loading…
Reference in New Issue
Block a user