bug 11843. Fix python command for SetExpressionFunction()

This commit is contained in:
eap 2006-03-13 08:41:26 +00:00
parent cf684038a4
commit 8e40a6015e

View File

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