Fix a couple of stupid mistakes, I'm off to find a brown paper bag now.
This commit is contained in:
parent
a4eebe4277
commit
a760869475
1 changed files with 3 additions and 4 deletions
|
@ -556,10 +556,9 @@ FGDialog::setupObject (puObject * object, SGPropertyNode * props)
|
||||||
|
|
||||||
if ( SGPropertyNode *nft = props->getNode("font", false) ) {
|
if ( SGPropertyNode *nft = props->getNode("font", false) ) {
|
||||||
SGPath path( _font_path );
|
SGPath path( _font_path );
|
||||||
string name = props->getStringValue("name");
|
const char *name = nft->getStringValue("name", "default");
|
||||||
float size = props->getFloatValue("size", 13.0);
|
float size = nft->getFloatValue("size", 13.0);
|
||||||
float slant = props->getFloatValue("slant", 0.0);
|
float slant = nft->getFloatValue("slant", 0.0);
|
||||||
if ( name.empty() ) name = "typewriter";
|
|
||||||
path.append( name );
|
path.append( name );
|
||||||
path.concat( ".txf" );
|
path.concat( ".txf" );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue