From 4ac0776e97424716dd027d6d7cb141a5e1a71f92 Mon Sep 17 00:00:00 2001 From: mfranz Date: Wed, 13 Jul 2005 07:05:50 +0000 Subject: [PATCH] nasal dialogs are separate trees and have an empty name --- src/GUI/dialog.cxx | 3 +++ 1 file changed, 3 insertions(+) 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")); -- 2.39.5