]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
bug 11843. Fix python command for SetExpressionFunction()
authoreap <eap@opencascade.com>
Mon, 13 Mar 2006 08:41:26 +0000 (08:41 +0000)
committereap <eap@opencascade.com>
Mon, 13 Mar 2006 08:41:26 +0000 (08:41 +0000)
src/StdMeshers_I/StdMeshers_NumberOfSegments_i.cxx

index edc817e3bd453a5c6386911d3dba80cf49db9c4d..12d77a6dd0e14f1535dfdfc65817c47a24efdaa8 100644 (file)
@@ -308,7 +308,7 @@ void StdMeshers_NumberOfSegments_i::SetExpressionFunction(const char* expr)
   try {
     this->GetImpl()->SetExpressionFunction( expr );
     // Update Python script
-    SMESH::TPythonDump() << _this() << ".SetExpressionFunction( " << expr << " )";
+    SMESH::TPythonDump() << _this() << ".SetExpressionFunction( '" << expr << "' )";
   }
   catch ( SALOME_Exception& S_ex ) {
     THROW_SALOME_CORBA_EXCEPTION( S_ex.what(),