From: ehofman Date: Tue, 3 May 2005 12:20:17 +0000 (+0000) Subject: Shoot, I removed a bit of crucial information just before committing it. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a4eebe4277a55a38debb29f5e9aa3d6453ca6902;p=flightgear.git Shoot, I removed a bit of crucial information just before committing it. --- diff --git a/src/GUI/dialog.cxx b/src/GUI/dialog.cxx index eb90de044..2515d18b1 100644 --- a/src/GUI/dialog.cxx +++ b/src/GUI/dialog.cxx @@ -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); }