]> git.mxchange.org Git - flightgear.git/commitdiff
Shoot, I removed a bit of crucial information just before committing it.
authorehofman <ehofman>
Tue, 3 May 2005 12:20:17 +0000 (12:20 +0000)
committerehofman <ehofman>
Tue, 3 May 2005 12:20:17 +0000 (12:20 +0000)
src/GUI/dialog.cxx

index eb90de044e90d0ffe1d2b496cdffd3eb3c5b4e0f..2515d18b1feb1f092be8394023f42e763c30c93f 100644 (file)
@@ -258,6 +258,14 @@ GUIInfo::~GUIInfo ()
 FGDialog::FGDialog (SGPropertyNode * props)
     : _object(0)
 {
+    char* envp = ::getenv( "FG_FONTS" );
+    if ( envp != NULL ) {
+        _font_path.set( envp );
+    } else {
+        _font_path.set( globals->get_fg_root() );
+        _font_path.append( "Fonts" );
+    }
+
     display(props);
 }