From: Dave Luff Date: Wed, 8 Dec 2010 19:03:54 +0000 (+0000) Subject: KLN89: Fix a tiny UI bug - don't draw the indicator bar on the DTO page X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d450900e0bfd44006079698d6e0406996eae09e9;p=flightgear.git KLN89: Fix a tiny UI bug - don't draw the indicator bar on the DTO page --- diff --git a/src/Instrumentation/KLN89/kln89.cxx b/src/Instrumentation/KLN89/kln89.cxx index 67ab0e99f..98b24f86b 100644 --- a/src/Instrumentation/KLN89/kln89.cxx +++ b/src/Instrumentation/KLN89/kln89.cxx @@ -357,11 +357,11 @@ void KLN89::update(double dt) { } } + // Draw the indicator that shows which page we are on. if(_curPage == 6 && _activePage->GetSubPage() == 3) { // Don't draw the bar on the nav-4 page - } else if(_activePage == _nrst_page) { - // Don't draw the bar on the nearest page - } else { + } else if((_activePage != _nrst_page) && (_activePage != _dir_page) && (!_dispMsg)) { + // Don't draw the bar on the NRST, DTO or MSG pages DrawBar(_curPage); }