From: apo Date: Fri, 21 Jan 2005 05:28:52 +0000 (+0000) Subject: Fix on [Bug PAL7750] Regression of UNDO in GEOM X-Git-Tag: V2_2_0a2~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=83abcf69126ce0eebb0b43e50d9a200e54a5df3f;p=modules%2Fkernel.git Fix on [Bug PAL7750] Regression of UNDO in GEOM The regression was caused by last refactoring of SALOMEDS concerning improving memory menagement. Bug PAL7023 - Problem loading MED file with a large number of families (same as VISU6154)) --- diff --git a/src/SALOMEDS/SALOMEDS_SObject_i.cxx b/src/SALOMEDS/SALOMEDS_SObject_i.cxx index e3681ccf4..5f5ddded8 100644 --- a/src/SALOMEDS/SALOMEDS_SObject_i.cxx +++ b/src/SALOMEDS/SALOMEDS_SObject_i.cxx @@ -623,7 +623,7 @@ SALOMEDS_SObject_i::_FindGenAttribute(const char* theType) if(aGenAttr != NULL) myAttrMap[theType] = anAttrHolder; }else{ - myAttrMap.erase(theType); + //myAttrMap.erase(theType); //if(anGenAttr != NULL) // anGenAttr->Destroy(); return TAttrHolder(); @@ -745,7 +745,7 @@ void SALOMEDS_SObject_i::RemoveAttribute(const char* theType) } TAttrMap::iterator anIter = myAttrMap.find(theType); if(anIter != myAttrMap.end()){ - myAttrMap.erase(anIter); + //myAttrMap.erase(anIter); } _lab.ForgetAttribute(::GetGUID(theType)); } @@ -765,8 +765,8 @@ void SALOMEDS_SObject_i::OnRemove() _study->AddPostponed(TCollection_AsciiString(anAttr->Get()).ToCString()); } - myAttrMap.clear(); + //myAttrMap.clear(); - SALOMEDS_Study_i::TSObjectMap& anSObjectMap = _study->GetSObjectMap(); - anSObjectMap.erase(_lab); + //SALOMEDS_Study_i::TSObjectMap& anSObjectMap = _study->GetSObjectMap(); + //anSObjectMap.erase(_lab); }