From: ouv Date: Thu, 17 Dec 2009 10:16:04 +0000 (+0000) Subject: Debug X-Git-Tag: PHASE_17_Part1_V4~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d58ffa50ae18bb1fee60d57805a006caf1250090;p=modules%2Fkernel.git Debug --- diff --git a/src/Notebook/SALOME_EvalSet.cxx b/src/Notebook/SALOME_EvalSet.cxx index d6ff45930..3dd301996 100755 --- a/src/Notebook/SALOME_EvalSet.cxx +++ b/src/Notebook/SALOME_EvalSet.cxx @@ -520,11 +520,10 @@ SALOME_String SALOME_EvalSetLogic::name() const bool SALOME_EvalSetLogic::createValue(const SALOME_String& str, SALOME_EvalVariant& val)const { bool ok = true; - SALOME_String valStr = toLower(str); // - if ( valStr == "true" || valStr == "yes" ) + if ( str == "True" ) val = SALOME_EvalVariant( true ); - else if ( valStr == "false" || valStr == "no" ) + else if ( str == "False" ) val = SALOME_EvalVariant( false ); else ok = SALOME_EvalSetBase::createValue( str, val ); diff --git a/src/Notebook/SALOME_EvalVariant.cxx b/src/Notebook/SALOME_EvalVariant.cxx index d0a218c76..11d4e5f41 100755 --- a/src/Notebook/SALOME_EvalVariant.cxx +++ b/src/Notebook/SALOME_EvalVariant.cxx @@ -342,7 +342,7 @@ bool SALOME_EvalVariant::toBool() const return DataValueDouble() != 0.; } else if ( aType == SALOME_EvalVariant_String ) { - SALOME_String aZero("0"), aFalse("false"); + SALOME_String aZero("0"), aFalse("False"); const SALOME_String& aStr=DataValueString(); return !(aStr==aZero || aStr==aFalse || aStr.empty()); } @@ -443,7 +443,7 @@ SALOME_String SALOME_EvalVariant::toString() const int iX; // iX=toInt(&bOk); - aS= iX? "true" : "false"; + aS= iX? "True" : "False"; } else if (aType == SALOME_EvalVariant_Int) { sprintf(buffer, "%d", DataValueInt()); diff --git a/src/Notebook/SALOME_Notebook.cxx b/src/Notebook/SALOME_Notebook.cxx index 1382c8467..0edb15c9d 100644 --- a/src/Notebook/SALOME_Notebook.cxx +++ b/src/Notebook/SALOME_Notebook.cxx @@ -1027,7 +1027,7 @@ bool SALOME_Notebook::CheckParamName( const std::string& theParamName, std::stri for( int i=0, n=theParamName.length(); i