]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/KLN89/kln89_page_ndb.cxx
Merge commit 'refs/merge-requests/14' of git://gitorious.org/fg/flightgear into next
[flightgear.git] / src / Instrumentation / KLN89 / kln89_page_ndb.cxx
index 0a70f1d633d7260dd2f67777085a22ee1a2f9181..c6ba4bb0eee145d0b967bdd181e678751ee25865 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
@@ -158,8 +158,12 @@ void KLN89NDBPage::ClrPressed() {
 void KLN89NDBPage::EntPressed() {
        if(_entInvert) {
                _entInvert = false;
-               _last_ndb_id = _ndb_id;
-               _ndb_id = _save_ndb_id;
+               if(_kln89->_dtoReview) {
+                       _kln89->DtoInitiate(_ndb_id);
+               } else {
+                       _last_ndb_id = _ndb_id;
+                       _ndb_id = _save_ndb_id;
+               }
        }
 }