nasal dialogs are separate trees and have an empty name
This commit is contained in:
parent
eefd7dee8c
commit
4ac0776e97
1 changed files with 3 additions and 0 deletions
|
@ -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"));
|
||||
|
|
Loading…
Reference in a new issue