]> OCCT Git - occt.git/commitdiff
0031759: Application Framework - regression: support of old versions of OCAF document...
authorvro <vro@opencascade.com>
Tue, 15 Sep 2020 08:36:11 +0000 (11:36 +0300)
committerbugmaster <bugmaster@opencascade.com>
Fri, 18 Sep 2020 14:46:53 +0000 (17:46 +0300)
src/XmlMDF/XmlMDF.cxx

index 33e55ae9a671cdc87ec81ee1b1a0580e889932a0..33711f40f18b2d1c50b33e8a0bc4012ea4052fa2 100644 (file)
@@ -107,7 +107,7 @@ Standard_Integer XmlMDF::WriteSubTree
       // was replaced by TDataXtd_Presentation. Therefore, for old versions
       // we write old name of the attribute (TPrsStd_AISPresentation).
       Standard_CString typeName = aDriver->TypeName().ToCString();
-      if (XmlLDrivers::StorageVersion() < 8 &&
+      if (theRelocTable.GetHeaderData()->StorageVersion().IntegerValue() < 8 &&
           strcmp(typeName, "TDataXtd_Presentation") == 0)
       {
         typeName = "TPrsStd_AISPresentation";