From: ehofman Date: Tue, 3 May 2005 12:48:31 +0000 (+0000) Subject: Fix a couple of stupid mistakes, I'm off to find a brown paper bag now. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a760869475131035cfe446107cb6cf1f341b938d;p=flightgear.git Fix a couple of stupid mistakes, I'm off to find a brown paper bag now. --- diff --git a/src/GUI/dialog.cxx b/src/GUI/dialog.cxx index 2515d18b1..ff263634e 100644 --- a/src/GUI/dialog.cxx +++ b/src/GUI/dialog.cxx @@ -556,10 +556,9 @@ FGDialog::setupObject (puObject * object, SGPropertyNode * props) if ( SGPropertyNode *nft = props->getNode("font", false) ) { SGPath path( _font_path ); - string name = props->getStringValue("name"); - float size = props->getFloatValue("size", 13.0); - float slant = props->getFloatValue("slant", 0.0); - if ( name.empty() ) name = "typewriter"; + const char *name = nft->getStringValue("name", "default"); + float size = nft->getFloatValue("size", 13.0); + float slant = nft->getFloatValue("slant", 0.0); path.append( name ); path.concat( ".txf" );