1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-05-31 11:15:31 +03:00

0026637: Save function works incorrect in OCAF mfc sample

Storage format was corrected.
This commit is contained in:
ski 2015-09-03 15:29:01 +03:00 committed by abv
parent d833925587
commit f6749d511e

View File

@ -87,7 +87,7 @@ COcafDoc::~COcafDoc()
Handle(TOcaf_Application) OcafApp= ((COcafApp*)AfxGetApp())->GetApp(); \n\ Handle(TOcaf_Application) OcafApp= ((COcafApp*)AfxGetApp())->GetApp(); \n\
\n\ \n\
// Creating the new document \n\ // Creating the new document \n\
OcafApp->NewDocument(\"Ocaf-Sample\", myOcafDoc); \n\ OcafApp->NewDocument(\"MDTV-Standard\", myOcafDoc); \n\
\n\ \n\
// Creation of a new TPrsStd_AISViewer connected to the current V3d_Viewer\n\ // Creation of a new TPrsStd_AISViewer connected to the current V3d_Viewer\n\
TPrsStd_AISViewer::New(myOcafDoc->Main(),myViewer); \n\ TPrsStd_AISViewer::New(myOcafDoc->Main(),myViewer); \n\
@ -1068,7 +1068,7 @@ m_App->SaveAs(myOcafDoc,(TCollection_ExtendedString) TPath); \n\
else else
{ {
// The document must be saved in standard format // The document must be saved in standard format
myOcafDoc->ChangeStorageFormat("Ocaf-Sample"); myOcafDoc->ChangeStorageFormat("MDTV-Standard");
} }
try try