From: eap Date: Mon, 13 Mar 2006 08:41:26 +0000 (+0000) Subject: bug 11843. Fix python command for SetExpressionFunction() X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8e40a6015e50beabe8bc2d7dcc96b1c673554916;p=modules%2Fsmesh.git bug 11843. Fix python command for SetExpressionFunction() --- diff --git a/src/StdMeshers_I/StdMeshers_NumberOfSegments_i.cxx b/src/StdMeshers_I/StdMeshers_NumberOfSegments_i.cxx index edc817e3b..12d77a6dd 100644 --- a/src/StdMeshers_I/StdMeshers_NumberOfSegments_i.cxx +++ b/src/StdMeshers_I/StdMeshers_NumberOfSegments_i.cxx @@ -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(),