]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/KLN89/kln89_page_int.cxx
comment out unused variables and function and properly initialize variables
[flightgear.git] / src / Instrumentation / KLN89 / kln89_page_int.cxx
index 581580f2a5433584fbaa6bda81dc7c42c9d112b1..ac3ac25b9d97fb90b748d6093b7f9637c0221bf0 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
 #endif
 
 #include "kln89_page_int.hxx"
-#include "Navaids/fix.hxx"
+#include <Navaids/fix.hxx>
+#include <Navaids/navrecord.hxx>
+
+using std::string;
 
 KLN89IntPage::KLN89IntPage(KLN89* parent) 
 : KLN89Page(parent) {
@@ -194,8 +197,13 @@ void KLN89IntPage::ClrPressed() {
 void KLN89IntPage::EntPressed() {
        if(_entInvert) {
                _entInvert = false;
-               _last_int_id = _int_id;
-               _int_id = _save_int_id;
+               _entInvert = false;
+               if(_kln89->_dtoReview) {
+                       _kln89->DtoInitiate(_int_id);
+               } else {
+                       _last_int_id = _int_id;
+                       _int_id = _save_int_id;
+               }
        }
 }