From: asl Date: Wed, 25 Nov 2009 12:38:11 +0000 (+0000) Subject: correct treatment of white spaces X-Git-Tag: PHASE_17_Part1_V1~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=41c433519996d286eff1da815ed905ffd01c43c0;p=modules%2Fkernel.git correct treatment of white spaces --- diff --git a/src/Notebook/SALOME_EvalParser.cxx b/src/Notebook/SALOME_EvalParser.cxx index a9340c426..d022a1ca1 100755 --- a/src/Notebook/SALOME_EvalParser.cxx +++ b/src/Notebook/SALOME_EvalParser.cxx @@ -291,7 +291,7 @@ bool SALOME_EvalParser::prepare( const SALOME_String& theExpr, Postfix& thePostf char aChar = theExpr[aPos]; while( aPos < aLen && isSpace( aChar ) ) - aPos++; + aChar = theExpr[++aPos]; if ( aPos >= aLen ) break; @@ -942,7 +942,7 @@ void SALOME_EvalParser::setError(SALOME_EvalExprError err) //======================================================================= bool SALOME_EvalParser::isMonoParam() const { - return myError == EvalExpr_OK && myPostfix.size()==1 && myPostfix.begin()->myType == Param; + return myError==EvalExpr_OK && myPostfix.size()==1 && myPostfix.begin()->myType==Param; } //=======================================================================