]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/wxradar.cxx
return attribute mask as unsigned
[flightgear.git] / src / Instrumentation / wxradar.cxx
index 30680b9d2898391267cac2fe71b6c02752172ff6..613a3c24372c9e69349666cda0c327ebfb543a3c 100644 (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);
 }