From 980105385dcaa79194a264463629809cdf9e5c02 Mon Sep 17 00:00:00 2001 From: James Turner Date: Tue, 22 Jan 2013 18:15:05 +0100 Subject: [PATCH] Use the aircraft position helper. --- src/GUI/MapWidget.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/GUI/MapWidget.cxx b/src/GUI/MapWidget.cxx index 004207e71..a161e822a 100644 --- a/src/GUI/MapWidget.cxx +++ b/src/GUI/MapWidget.cxx @@ -537,8 +537,7 @@ void MapWidget::zoomOut() void MapWidget::draw(int dx, int dy) { - _aircraft = SGGeod::fromDeg(fgGetDouble("/position/longitude-deg"), - fgGetDouble("/position/latitude-deg")); + _aircraft = globals->get_aircraft_position(); bool mag = _root->getBoolValue("magnetic-headings"); if (mag != _magneticHeadings) { -- 2.39.5