mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 15:45:46 +08:00
Fix assert due to NaN in CXSwiftBusTrafficProxy::getElevationAtPosition
This commit is contained in:
@@ -322,7 +322,11 @@ namespace BlackMisc
|
||||
}
|
||||
|
||||
//! Is null?
|
||||
virtual bool isNull() const override { return Math::CMathUtils::epsilonZeroLimits(m_x) && Math::CMathUtils::epsilonZeroLimits(m_y) && Math::CMathUtils::epsilonZeroLimits(m_z); }
|
||||
virtual bool isNull() const override
|
||||
{
|
||||
if (m_geodeticHeight.isNull()) { return true; }
|
||||
return Math::CMathUtils::epsilonZeroLimits(m_x) && Math::CMathUtils::epsilonZeroLimits(m_y) && Math::CMathUtils::epsilonZeroLimits(m_z);
|
||||
}
|
||||
|
||||
//! Coordinate by WGS84 position data
|
||||
static CCoordinateGeodetic fromWgs84(const QString &latitudeWgs84, const QString &longitudeWgs84, const Aviation::CAltitude &geodeticHeight = {});
|
||||
|
||||
Reference in New Issue
Block a user