X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2FKLN89%2Fkln89_page_vor.cxx;h=a6d2ad222053fca810a8428587d193783e450262;hb=659c5b9676a0c11b169926c09014bea547a6ee93;hp=c0caaba722929a532baffab36fdb25eb8c8e31ad;hpb=90b2d25671d60ff3c5561791676f27d31676904c;p=flightgear.git diff --git a/src/Instrumentation/KLN89/kln89_page_vor.cxx b/src/Instrumentation/KLN89/kln89_page_vor.cxx index c0caaba72..a6d2ad222 100644 --- a/src/Instrumentation/KLN89/kln89_page_vor.cxx +++ b/src/Instrumentation/KLN89/kln89_page_vor.cxx @@ -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 @@ -25,8 +25,12 @@ # include "config.h" #endif +#include + #include "kln89_page_vor.hxx" -#include "Navaids/navrecord.hxx" +#include + +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; + } } }