From ce8e28f1f5a3020f0f7fe583aa4eab409f8ae813 Mon Sep 17 00:00:00 2001 From: mfranz Date: Fri, 28 Apr 2006 12:14:23 +0000 Subject: [PATCH] what about using the right variable? --- src/GUI/dialog.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GUI/dialog.cxx b/src/GUI/dialog.cxx index 4c55fe8d9..1701716ef 100644 --- a/src/GUI/dialog.cxx +++ b/src/GUI/dialog.cxx @@ -384,7 +384,7 @@ FGDialog::updateValues (const char * objectName) { for (unsigned int i = 0; i < _propertyObjects.size(); i++) { const string &name = _propertyObjects[i]->name; - if (name.size() && name != objectName) + if (objectName && name != objectName) continue; puObject *obj = _propertyObjects[i]->object; @@ -397,7 +397,7 @@ FGDialog::applyValues (const char * objectName) { for (unsigned int i = 0; i < _propertyObjects.size(); i++) { const string &name = _propertyObjects[i]->name; - if (name.size() && name != objectName) + if (objectName && name != objectName) continue; copy_from_pui(_propertyObjects[i]->object,