mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +03:00
0031759: Application Framework - regression: support of old versions of OCAF document fails
This commit is contained in:
parent
48cbe5f797
commit
8fde921fbe
@ -107,7 +107,7 @@ Standard_Integer XmlMDF::WriteSubTree
|
|||||||
// was replaced by TDataXtd_Presentation. Therefore, for old versions
|
// was replaced by TDataXtd_Presentation. Therefore, for old versions
|
||||||
// we write old name of the attribute (TPrsStd_AISPresentation).
|
// we write old name of the attribute (TPrsStd_AISPresentation).
|
||||||
Standard_CString typeName = aDriver->TypeName().ToCString();
|
Standard_CString typeName = aDriver->TypeName().ToCString();
|
||||||
if (XmlLDrivers::StorageVersion() < 8 &&
|
if (theRelocTable.GetHeaderData()->StorageVersion().IntegerValue() < 8 &&
|
||||||
strcmp(typeName, "TDataXtd_Presentation") == 0)
|
strcmp(typeName, "TDataXtd_Presentation") == 0)
|
||||||
{
|
{
|
||||||
typeName = "TPrsStd_AISPresentation";
|
typeName = "TPrsStd_AISPresentation";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user