From d925296b63193225bb4190b9484b9df6ae243b2b Mon Sep 17 00:00:00 2001 From: azv Date: Tue, 26 Nov 2019 16:15:46 +0300 Subject: [PATCH] Set correct drivers for reading/writing '.shaperpart' files --- src/Model/Model_Application.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Model/Model_Application.cpp b/src/Model/Model_Application.cpp index 9dcb0bd55..c2772757f 100644 --- a/src/Model/Model_Application.cpp +++ b/src/Model/Model_Application.cpp @@ -22,7 +22,8 @@ #include -#include +#include +#include IMPLEMENT_STANDARD_RTTIEXT(Model_Application, TDocStd_Application) @@ -173,9 +174,8 @@ Model_Application::Model_Application() // additional file format supported static TCollection_ExtendedString THE_DOC_FORMAT("BinShaperPart"); static TCollection_ExtendedString THE_FILE_EXT("shaperpart"); - Handle(PCDM_RetrievalDriver) aReader = - Handle(PCDM_RetrievalDriver)::DownCast(TheKeepHandle->ReaderFromFormat("BinOcaf")); - Handle(PCDM_StorageDriver) aWriter = TheKeepHandle->WriterFromFormat("BinOcaf"); + Handle(PCDM_RetrievalDriver) aReader = new BinDrivers_DocumentRetrievalDriver; + Handle(PCDM_StorageDriver) aWriter = new BinDrivers_DocumentStorageDriver; TheKeepHandle->DefineFormat(THE_DOC_FORMAT, "Shaper Part document", THE_FILE_EXT, aReader, aWriter); } -- 2.39.2