]> git.mxchange.org Git - flightgear.git/commitdiff
nasal dialogs are separate trees and have an empty name
authormfranz <mfranz>
Wed, 13 Jul 2005 07:05:50 +0000 (07:05 +0000)
committermfranz <mfranz>
Wed, 13 Jul 2005 07:05:50 +0000 (07:05 +0000)
src/GUI/dialog.cxx

index 3b2484150391344f7ca852462b2ee0a05dd6580e..22924c350d1f1d044c27b1324f4738011605f8db 100644 (file)
@@ -667,6 +667,9 @@ void
 FGDialog::setColor(puObject * object, SGPropertyNode * props, int which)
 {
     string type = props->getName();
+    if (type == "")
+        type = "dialog";
+
     FGColor c(_gui->getColor("background"));
     c.merge(_gui->getColor(type));
     c.merge(props->getNode("color"));