diff host/tools/configtool/common/win32/FailingRulesDialog.cpp @ 171:42f843b391aa

Merge from eCos master repository on 2001-07-18-03:13:25-BST
author jlarmour
date Wed, 18 Jul 2001 11:38:39 +0000
parents 435cced73e2f
children
line wrap: on
line diff
--- a/host/tools/configtool/common/win32/FailingRulesDialog.cpp
+++ b/host/tools/configtool/common/win32/FailingRulesDialog.cpp
@@ -182,8 +182,11 @@ void CFailingRulesDialog::OnOK()
               {
                 bool bEnabled=value.is_enabled();
                 str.Format(_T("%s %s and set value to %s\n"),bEnabled?_T("disable"):_T("enable"),strName,strValue);
-                CdlSimpleValue simple_value = valuable->get_simple_value ();
-                valuable->set_enabled_and_value (m_Transaction, bEnabled, simple_value, CdlValueSource_User);
+                // This is wrong: it should set the NEW value. This is the cause of a long-standing bug...
+                // CdlSimpleValue simple_value = valuable->get_simple_value ();
+                //valuable->set_enabled_and_value (m_Transaction, bEnabled, simple_value, CdlValueSource_User);
+                valuable->set_enabled_and_value (m_Transaction, bEnabled, CUtils::UnicodeToStdStr (strValue), CdlValueSource_User);
+
               }
               break;
             case CdlValueFlavor_Data :