From 41da00105c0f3837e7f0e0cad405b889e03bb6b6 Mon Sep 17 00:00:00 2001 From: mfranz Date: Fri, 9 Jan 2009 11:58:28 +0000 Subject: [PATCH] apply custom widget fonts also to the legend, so that they show up in list/textbox etc. (This should really be separately settable via style definition, but it's very rarely used and a change now is probably not worth it as we'll probably switch to osgWidget, anyway.) --- src/GUI/dialog.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/GUI/dialog.cxx b/src/GUI/dialog.cxx index f540bfec9..41a967aa1 100644 --- a/src/GUI/dialog.cxx +++ b/src/GUI/dialog.cxx @@ -711,10 +711,11 @@ FGDialog::setupObject (puObject * object, SGPropertyNode * props) if (props->hasValue("border")) object->setBorderThickness( props->getIntValue("border", 2) ); - if ( SGPropertyNode *nft = props->getNode("font", false) ) { + if (SGPropertyNode *nft = props->getNode("font", false)) { FGFontCache *fc = globals->get_fontcache(); puFont *lfnt = fc->get(nft); object->setLabelFont(*lfnt); + object->setLegendFont(*lfnt); } else { object->setLabelFont(*_font); }