]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/KLN89/kln89_page_vor.cxx
Fix spelling
[flightgear.git] / src / Instrumentation / KLN89 / kln89_page_vor.cxx
index c0caaba722929a532baffab36fdb25eb8c8e31ad..a6d2ad222053fca810a8428587d193783e450262 100644 (file)
@@ -3,7 +3,7 @@
 //
 // Written by David Luff, started 2005.
 //
-// Copyright (C) 2005 - David C Luff - david.luff@nottingham.ac.uk
+// Copyright (C) 2005 - David C Luff - daveluff AT ntlworld.com
 //
 // This program is free software; you can redistribute it and/or
 // modify it under the terms of the GNU General Public License as
 #  include "config.h"
 #endif
 
+#include <cstdio>
+
 #include "kln89_page_vor.hxx"
-#include "Navaids/navrecord.hxx"
+#include <Navaids/navrecord.hxx>
+
+using std::string;
 
 KLN89VorPage::KLN89VorPage(KLN89* parent) 
 : KLN89Page(parent) {
@@ -170,8 +174,13 @@ void KLN89VorPage::ClrPressed() {
 void KLN89VorPage::EntPressed() {
        if(_entInvert) {
                _entInvert = false;
-               _last_vor_id = _vor_id;
-               _vor_id = _save_vor_id;
+               _entInvert = false;
+               if(_kln89->_dtoReview) {
+                       _kln89->DtoInitiate(_vor_id);
+               } else {
+                       _last_vor_id = _vor_id;
+                       _vor_id = _save_vor_id;
+               }
        }
 }