]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
debug
authorasl <asl@opencascade.com>
Wed, 25 Nov 2009 12:37:36 +0000 (12:37 +0000)
committerasl <asl@opencascade.com>
Wed, 25 Nov 2009 12:37:36 +0000 (12:37 +0000)
src/Notebook/SALOME_EvalExpr.cxx

index 667f9104468c28567d583c08482798e3fb7f6a25..56b37e44fff5710e2d07ba6cd8a2de29703ea6ff 100755 (executable)
@@ -82,7 +82,8 @@ void SALOME_EvalExpr::initialize( const SALOME_String& theExpr, const bool isStd
 //=======================================================================
 SALOME_EvalVariant SALOME_EvalExpr::calculate( const SALOME_String& theExpr )
 {
-  setExpression( theExpr );
+  if( theExpr.length() > 0 )
+    setExpression( theExpr );
   return myParser->calculate();
 }