From: Jérôme Date: Sun, 18 Oct 2020 17:04:17 +0000 (+0200) Subject: Fix issue import GEOM/SHAPER X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=13e2f05a43a1185ded0208b4ed7a7a891bd9a8f0;p=modules%2Fshaper.git Fix issue import GEOM/SHAPER --- 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; }