From: mfranz Date: Wed, 13 Jul 2005 07:05:50 +0000 (+0000) Subject: nasal dialogs are separate trees and have an empty name X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4ac0776e97424716dd027d6d7cb141a5e1a71f92;p=flightgear.git nasal dialogs are separate trees and have an empty name --- diff --git a/src/GUI/dialog.cxx b/src/GUI/dialog.cxx index 3b2484150..22924c350 100644 --- a/src/GUI/dialog.cxx +++ b/src/GUI/dialog.cxx @@ -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"));