]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/KLN89/kln89_page_vor.cxx
Merge branch 'maint2' into next
[flightgear.git] / src / Instrumentation / KLN89 / kln89_page_vor.cxx
index 3a1c5938ad820bc93472a5614439dbc8f975bc1b..c0caaba722929a532baffab36fdb25eb8c8e31ad 100644 (file)
 //
 // You should have received a copy of the GNU General Public License
 // along with this program; if not, write to the Free Software
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 //
 // $Id$
 
+#ifdef HAVE_CONFIG_H
+#  include "config.h"
+#endif
+
 #include "kln89_page_vor.hxx"
+#include "Navaids/navrecord.hxx"
 
 KLN89VorPage::KLN89VorPage(KLN89* parent) 
 : KLN89Page(parent) {
@@ -87,7 +92,7 @@ void KLN89VorPage::Update(double dt) {
                        //// TODO - will almost certainly have to process freq below for FG
                        _kln89->DrawFreq(np->get_freq(), 2, 9, 3);
                        // TODO - trim VOR-DME from the name, convert to uppercase, abbreviate, etc
-                       _kln89->DrawText(np->get_name(), 2, 0, 2);
+                       _kln89->DrawText(np->name(), 2, 0, 2);
                        //cout << np->lat << "... ";
                        _kln89->DrawLatitude(np->get_lat(), 2, 3, 1);
                        _kln89->DrawLongitude(np->get_lon(), 2, 3, 0);