From 1068d0d60e5e59de0899f8e3ed2b3516f64399d5 Mon Sep 17 00:00:00 2001 From: apo Date: Thu, 20 Jan 2005 14:10:13 +0000 Subject: [PATCH] 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)) --- src/SALOMEDS/SALOMEDS_SObject_i.cxx | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) 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; -- 2.39.2