diff --git a/gui/dialogs/gps.xml b/gui/dialogs/gps.xml index ecfca5c14..0062c2c4b 100644 --- a/gui/dialogs/gps.xml +++ b/gui/dialogs/gps.xml @@ -73,7 +73,7 @@ } - dlg.getNode("scratch-mag-bearing-deg", 1).setValue(cd[0] - magvar()); + dlg.getNode("scratch-mag-bearing-deg", 1).setValue(geo.normdeg(cd[0] - magvar())); dlg.getNode("scratch-distance-nm", 1).setValue(cd[1]); gui.dialog_update("gps");