From 049b3dcba6132974da0c78037aa270920f6fb28b Mon Sep 17 00:00:00 2001 From: James Turner Date: Fri, 20 Aug 2021 11:26:01 +0100 Subject: [PATCH] Fix Map initial position Since 'center on aircraft' is now persistent, we need to expliictly init this value when showing the map. Thanks to Michael Danilov and Colin Geniet for the fix. SF-Id: https://sourceforge.net/p/flightgear/codetickets/2637/ --- src/GUI/MapWidget.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/GUI/MapWidget.cxx b/src/GUI/MapWidget.cxx index 24cb29f2b..87f00e978 100644 --- a/src/GUI/MapWidget.cxx +++ b/src/GUI/MapWidget.cxx @@ -471,6 +471,8 @@ MapWidget::MapWidget(int x, int y, int maxX, int maxY) : _height = maxY - y; _hasPanned = false; _projection = PROJECTION_AZIMUTHAL_EQUIDISTANT; + + _projectionCenter = globals->get_aircraft_position(); _magneticHeadings = false; MapData::setFont(legendFont);