]> git.mxchange.org Git - flightgear.git/commitdiff
KLN89: Fix a tiny UI bug - don't draw the indicator bar on the DTO page
authorDave Luff <daveluff@ntlworld.com>
Wed, 8 Dec 2010 19:03:54 +0000 (19:03 +0000)
committerDave Luff <daveluff@ntlworld.com>
Wed, 8 Dec 2010 19:03:54 +0000 (19:03 +0000)
src/Instrumentation/KLN89/kln89.cxx

index 67ab0e99fe5dec2e5e6c3f20d3a689ebcd9f6c00..98b24f86b9c73444e0160e4f504c8ad60f636a67 100644 (file)
@@ -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);
        }