From 2805979577b105fe57c796a575a2551e58055e23 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Tue, 8 Aug 2017 18:35:27 +0200 Subject: [PATCH] Fixed setting altitude of airport --- src/blackmisc/aviation/airport.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/blackmisc/aviation/airport.cpp b/src/blackmisc/aviation/airport.cpp index e6d5b2b8b..4415f6d90 100644 --- a/src/blackmisc/aviation/airport.cpp +++ b/src/blackmisc/aviation/airport.cpp @@ -61,8 +61,11 @@ namespace BlackMisc { CAirport airport(json.value(prefix + "icao").toString()); airport.setDescriptiveName(json.value(prefix + "name").toString()); - airport.setElevation(CAltitude(json.value(prefix + "altitude").toInt(), CLengthUnit::ft())); - const CCoordinateGeodetic pos(json.value(prefix + "latitude").toDouble(), json.value(prefix + "longitude").toDouble(), 0); + const CCoordinateGeodetic pos( + json.value(prefix + "latitude").toDouble(), + json.value(prefix + "longitude").toDouble(), + json.value(prefix + "altitude").toDouble() + ); airport.setPosition(pos); airport.setOperating(json.value(prefix + "operating").toString() == QStringLiteral("Y"));