]> git.mxchange.org Git - flightgear.git/blobdiff - src/GUI/new_gui.hxx
Clear chat messages when an aircraft becomes inactive in the property tree.
[flightgear.git] / src / GUI / new_gui.hxx
index 0957564f44474a7c80ea8943f076d6dd9a259230..981628af8406eb0843bb162eb0532ee7d0e13bae 100644 (file)
@@ -27,9 +27,10 @@ SG_USING_STD(string);
 
 #include <Main/fg_props.hxx>
 
+class SGBinding;
+
 class FGMenuBar;
 class FGDialog;
-class FGBinding;
 class FGColor;
 class FGFontCache;
 
@@ -295,7 +296,7 @@ class FGFontCache {
 private:
     struct fnt {
         fnt(puFont *pu = 0) : pufont(pu), texfont(0) {}
-        ~fnt() { delete pufont; delete texfont; }
+        ~fnt() { if (texfont) { delete pufont; delete texfont; } }
         puFont *pufont;
         fntTexFont *texfont;
     };
@@ -314,6 +315,8 @@ public:
     puFont *get(SGPropertyNode *node);
 
     fntTexFont *getTexFont(const char *name, float size=15.0, float slant=0.0);
+
+    SGPath getfntpath(const char *name);
 };