From eb2a167331807d0800fe3312f0a9994584444880 Mon Sep 17 00:00:00 2001 From: mfranz Date: Mon, 2 Jun 2008 11:44:02 +0000 Subject: [PATCH] attach listener after setting the default values (of course :-) --- src/Instrumentation/wxradar.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Instrumentation/wxradar.cxx b/src/Instrumentation/wxradar.cxx index 30680b9d2..613a3c243 100644 --- a/src/Instrumentation/wxradar.cxx +++ b/src/Instrumentation/wxradar.cxx @@ -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); } -- 2.39.5