Salome HOME
untabify
[modules/smesh.git] / src / SMESH_I / SMESH_Filter_i.cxx
index 933239e59e64e2eb57be57092f5ec425a7f0aaa6..c75d81e8877cc7914074b69ddfb0e9a2746406d6 100644 (file)
@@ -2099,7 +2099,7 @@ SetMesh( SMESH_Mesh_ptr theMesh )
   if(!CORBA::is_nil(myMesh))
     myMesh->Destroy();
 
-  myMesh = theMesh;
+  myMesh = SMESH_Mesh::_duplicate( theMesh );
   TPythonDump()<<this<<".SetMesh("<<theMesh<<")";
 }