Fix out-of-bounds reference.

This commit is contained in:
Bartosz Taudul 2023-02-24 23:06:12 +01:00
parent b3186a9b7d
commit 40b648655b
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

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;