From: eap Date: Thu, 27 Apr 2006 14:41:04 +0000 (+0000) Subject: bug 11414. Correct removal of wrapped deleted objects X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=81677b70bf56c5cdfa08b8018a564010694742d5;p=modules%2Fsmesh.git bug 11414. Correct removal of wrapped deleted objects --- diff --git a/src/SMESH_I/SMESH_DumpPython.cxx b/src/SMESH_I/SMESH_DumpPython.cxx index 24e9751ea..d640a6489 100644 --- a/src/SMESH_I/SMESH_DumpPython.cxx +++ b/src/SMESH_I/SMESH_DumpPython.cxx @@ -756,6 +756,10 @@ TCollection_AsciiString SMESH_Gen_i::DumpPython_impl for (int ir = 1; ir <= seqRemoved.Length(); ir++) { anUpdatedScript += "\n\tSO = theStudy.FindObjectIOR(theStudy.ConvertObjectToIOR("; anUpdatedScript += seqRemoved.Value(ir); + // for object wrapped by class of smesh.py + anEntry = theObjectNames( seqRemoved.Value(ir) ); + if ( anEntry2AccessorMethod.IsBound( anEntry ) ) + anUpdatedScript += helper + "." + anEntry2AccessorMethod( anEntry ); anUpdatedScript += "))\n\tif SO is not None: aStudyBuilder.RemoveObjectWithChildren(SO)"; }