From: apo Date: Thu, 20 Jan 2005 14:10:13 +0000 (+0000) Subject: Fix on [Bug PAL7750] Regression of UNDO in GEOM X-Git-Tag: V2_2_0a2~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1068d0d60e5e59de0899f8e3ed2b3516f64399d5;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 2ff17b580..e3681ccf4 100644 --- a/src/SALOMEDS/SALOMEDS_SObject_i.cxx +++ b/src/SALOMEDS/SALOMEDS_SObject_i.cxx @@ -535,20 +535,9 @@ SALOMEDS_SObject_i::_FindGenAttribute(const Handle(TDF_Attribute)& theAttr) Standard_GUID aGUID = theAttr->ID(); TGUID2AttrIDMap::const_iterator anIter = __GUID2AttrIDMap__.find(aGUID); - if(anIter != __GUID2AttrIDMap__.end()) - { - const ::TAttributeID& anAttributeID = anIter->second; - TAttrMap::const_iterator anIter = myAttrMap.find(anAttributeID); - if(anIter != myAttrMap.end()) - anGenAttr = anIter->second; - - SALOMEDS_GenericAttribute_i* anAttr = anGenAttr.first; - if(anAttr != NULL){ - if(anAttr->GetAttribute() != theAttr) - anAttr->SetAttribute(theAttr); - }else{ - anGenAttr = _CreateGenAttribute(theAttr,anAttributeID.c_str()); - } + if(anIter != __GUID2AttrIDMap__.end()){ + const TAttributeID& anAttributeID = anIter->second; + anGenAttr = _FindGenAttribute(anAttributeID.c_str()); } return anGenAttr;