]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix on [Bug PAL7750] Regression of UNDO in GEOM
authorapo <apo@opencascade.com>
Fri, 21 Jan 2005 05:28:52 +0000 (05:28 +0000)
committerapo <apo@opencascade.com>
Fri, 21 Jan 2005 05:28:52 +0000 (05:28 +0000)
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))

src/SALOMEDS/SALOMEDS_SObject_i.cxx

index e3681ccf44f9923435f9dc7db35a9d2339465450..5f5ddded8977a4af4324f3905c2e1d3135c4516f 100644 (file)
@@ -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);
 }