mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
Change values of default CCoordinateGeodetic constructor
Up to know, the default constructor initialized x=0, y=0 and z=0. This caused problems with default initialized CCoordinateGeodetic objects when using it in calculateGreatCircleDistance. The result was always 0. Instead use Lat=0, Lon=0, height=0.
This commit is contained in:
@@ -147,7 +147,8 @@ namespace BlackMisc
|
||||
|
||||
public:
|
||||
//! Default constructor
|
||||
CCoordinateGeodetic() = default;
|
||||
CCoordinateGeodetic() :
|
||||
CCoordinateGeodetic(0, 0, 0) {}
|
||||
|
||||
//! Constructor by normal vector
|
||||
CCoordinateGeodetic(const QVector3D &normal) : m_x(normal.x()), m_y(normal.y()), m_z(normal.z()) {}
|
||||
|
||||
Reference in New Issue
Block a user