mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +08:00
Fix the initial weather request in case last position is null
calculateGreatCircleDistance returns false immediately if any of the arguments was null. ref T324
This commit is contained in:
committed by
Klaus Basan
parent
7a7f1f2df0
commit
3804612bed
@@ -174,7 +174,7 @@ namespace BlackGui
|
||||
|
||||
if (CWeatherScenario::isRealWeatherScenario(scenario))
|
||||
{
|
||||
if (!useOwnAcftPosition ||
|
||||
if (m_lastOwnAircraftPosition.isNull() ||
|
||||
calculateGreatCircleDistance(position, m_lastOwnAircraftPosition).value(CLengthUnit::km()) > 20)
|
||||
{
|
||||
requestWeatherGrid(position);
|
||||
|
||||
Reference in New Issue
Block a user