From 13e2f05a43a1185ded0208b4ed7a7a891bd9a8f0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me?= Date: Sun, 18 Oct 2020 19:04:17 +0200 Subject: [PATCH] Fix issue import GEOM/SHAPER --- src/GeomAlgoAPI/GeomAlgoAPI_STEPImportXCAF.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_STEPImportXCAF.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_STEPImportXCAF.cpp index 5f7f95680..f2b130775 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_STEPImportXCAF.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_STEPImportXCAF.cpp @@ -113,12 +113,6 @@ std::shared_ptr readAttributes( STEPCAFControl_Reader &reader, Handle(XCAFApp_Application) dummy_app = XCAFApp_Application::GetApplication(); // XCAF Document to contain the STEP/IGES file itself Handle(TDocStd_Document) doc; - // check if a file is already open under this handle, if so, close it to - // prevent segfaults when trying to create a new document - if(dummy_app->NbDocuments() > 0) { - dummy_app->GetDocument(1, doc); - dummy_app->Close(doc); - } dummy_app->NewDocument( TCollection_ExtendedString("MDTV-CAF"), doc); // transfer STEP/IGES into the document, and get the main label @@ -156,7 +150,6 @@ std::shared_ptr readAttributes( STEPCAFControl_Reader &reader, } } } - return ageom; } -- 2.39.2