1
0
Fork 0

attach listener after setting the default values (of course :-)

This commit is contained in:
mfranz 2008-06-02 11:44:02 +00:00
parent 47b9da740b
commit eb2a167331

View file

@ -95,7 +95,6 @@ wxRadarBg::wxRadarBg(SGPropertyNode *node) :
_Tacan = fgGetNode(tacan_source, true);
_font_node = _Instrument->getNode("font", true);
_font_node->addChangeListener(this, true);
#define INITFONT(p, val, type) if (!_font_node->hasValue(p)) _font_node->set##type##Value(p, val)
INITFONT("name", DEFAULT_FONT, String);
@ -106,6 +105,8 @@ wxRadarBg::wxRadarBg(SGPropertyNode *node) :
INITFONT("color/blue", 0, Float);
INITFONT("color/alpha", 1, Float);
#undef INITFONT
_font_node->addChangeListener(this, true);
}