From 41c433519996d286eff1da815ed905ffd01c43c0 Mon Sep 17 00:00:00 2001 From: asl Date: Wed, 25 Nov 2009 12:38:11 +0000 Subject: [PATCH] correct treatment of white spaces --- src/Notebook/SALOME_EvalParser.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } //======================================================================= -- 2.39.2