]> OCCT Git - occt-copy.git/commitdiff
0026637: Save function works incorrect in OCAF mfc sample
authorski <ski@opencascade.com>
Thu, 3 Sep 2015 12:29:01 +0000 (15:29 +0300)
committerabv <abv@opencascade.com>
Fri, 11 Sep 2015 12:21:40 +0000 (15:21 +0300)
Storage format was corrected.

samples/mfc/standard/06_Ocaf/src/OcafDoc.cpp

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