1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00

0031759: Application Framework - regression: support of old versions of OCAF document fails

This commit is contained in:
vro 2020-09-15 11:36:11 +03:00 committed by bugmaster
parent 48cbe5f797
commit 8fde921fbe

View 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";