From: jfa Date: Mon, 6 Feb 2006 12:51:21 +0000 (+0000) Subject: To support References, stored by Salome maintainance version (2.2.x). X-Git-Tag: V3_2_0a1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=323c9e0b0e3750872e5e6618e1fe769eb9a77694;p=modules%2Fkernel.git To support References, stored by Salome maintainance version (2.2.x). --- diff --git a/src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx b/src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx index b6e861c10..ebf67aeca 100644 --- a/src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx +++ b/src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx @@ -1214,7 +1214,8 @@ static void ReadAttributes(const Handle(SALOMEDSImpl_Study)& theStudy, if (!strcmp(hdf_dataset->GetName(),"COMPONENTDATATYPE")) { anAttr = theStudy->NewBuilder()->FindOrCreateAttribute(aSO, "AttributeComment"); - } else if (!strcmp(hdf_dataset->GetName(),"AttributeReference")) { + } else if (!strcmp(hdf_dataset->GetName(),"AttributeReference") || + !strcmp(hdf_dataset->GetName(),"Reference")) { // Old format maintainance theStudy->NewBuilder()->Addreference(aSO, theStudy->CreateObjectID(current_string)); delete(current_string); hdf_dataset->CloseOnDisk();