X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH_I%2FSMESH_Gen_i.cxx;h=6461586bdacbc7898c41b6f7ee499a19f067f030;hb=f3488617a0929ebe064006633c908611c32bc5b7;hp=b1a879f93c8ada92a545eed691c47c8dc0fcc7a9;hpb=9315e9e9d28d2d9c723de8e51ca8b5eaeb8998ac;p=modules%2Fsmesh.git diff --git a/src/SMESH_I/SMESH_Gen_i.cxx b/src/SMESH_I/SMESH_Gen_i.cxx index b1a879f93..6461586bd 100644 --- a/src/SMESH_I/SMESH_Gen_i.cxx +++ b/src/SMESH_I/SMESH_Gen_i.cxx @@ -1170,12 +1170,11 @@ SMESH::SMESH_Mesh_ptr SMESH_Gen_i::Concatenate(const SMESH::mesh_array& theMeshe typedef map< pair, TListOfNewGroups > TGroupsMap; typedef std::set TGroups; + TPythonDump aPythonDump; // prevent dump of called methods + // create mesh SMESH::SMESH_Mesh_var aNewMesh = CreateEmptyMesh(); - // to update Python script - TPythonDump aPythonDump; - if ( !aNewMesh->_is_nil() ) { SMESH_Mesh_i* aNewImpl = dynamic_cast( GetServant( aNewMesh ).in() ); if ( aNewImpl ) { @@ -1326,7 +1325,6 @@ SMESH::SMESH_Mesh_ptr SMESH_Gen_i::Concatenate(const SMESH::mesh_array& theMeshe } // Update Python script - RemoveLastFromPythonScript( GetCurrentStudyID() ); aPythonDump << aNewMesh << " = " << this << ".Concatenate("; aPythonDump << "["; for ( int i = 0; i < theMeshesArray.length(); i++) { @@ -1335,8 +1333,8 @@ SMESH::SMESH_Mesh_ptr SMESH_Gen_i::Concatenate(const SMESH::mesh_array& theMeshe } aPythonDump << "], "; aPythonDump << theUniteIdenticalGroups << ", " - << theMergeNodesAndElements << ", " - << theMergeTolerance << ")"; + << theMergeNodesAndElements << ", " + << theMergeTolerance << ")"; return aNewMesh._retn(); }