When viewing live level 2 data, ensure the latest scan is selected

This commit is contained in:
Dan Paulat 2025-01-20 22:15:14 -06:00
parent c94e483c6e
commit 69d5a36f55
2 changed files with 13 additions and 2 deletions

View file

@ -191,7 +191,9 @@ Ar2vFile::GetElevationScan(rda::DataBlockType dataBlockType,
auto scanTime = std::chrono::floor<std::chrono::seconds>(scan.first);
if (elevationScan == nullptr ||
(scanTime <= time && scanTime > foundTime))
((scanTime <= time ||
time == std::chrono::system_clock::time_point {}) &&
scanTime > foundTime))
{
elevationScan = scan.second;
foundTime = scanTime;