]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
fix for crash in the case when the rule is finished by at least one white symbol
authorasl <asl@opencascade.com>
Thu, 9 Aug 2007 13:28:02 +0000 (13:28 +0000)
committerasl <asl@opencascade.com>
Thu, 9 Aug 2007 13:28:02 +0000 (13:28 +0000)
src/Qtx/QtxEvalExpr.cxx

index 8cab55543134cdf04d5cf0dac60be43d60332588..279439f9b37306fd92f8ea580e04f85336ed13fe 100644 (file)
@@ -371,7 +371,7 @@ bool QtxEvalParser::prepare( const QString& expr, Postfix& post )
   while ( pos < len && error() == QtxEvalExpr::OK )
   {
     PostfixItem item;
-    while ( expr[pos].isSpace() && pos < len )
+    while ( pos < len && expr[pos].isSpace() )
       pos++;
     if ( pos >= len )
       break;