]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
To support References, stored by Salome maintainance version (2.2.x).
authorjfa <jfa@opencascade.com>
Mon, 6 Feb 2006 12:51:21 +0000 (12:51 +0000)
committerjfa <jfa@opencascade.com>
Mon, 6 Feb 2006 12:51:21 +0000 (12:51 +0000)
src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx

index b6e861c10f4fcb9e847a30841a30816c409cd901..ebf67aeca7c1caa8739666e4af8b3221db0b6e26 100644 (file)
@@ -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();