From: Anthony Geay Date: Fri, 11 Jun 2021 06:32:36 +0000 (+0200) Subject: ExportMEDCoupling is now safer X-Git-Tag: V9_8_0a1~35 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=12d2ca8ac73624835e9398ebbb34a2febf8ee638;p=modules%2Fsmesh.git ExportMEDCoupling is now safer --- diff --git a/src/SMESH_I/SMESH_Mesh_i.cxx b/src/SMESH_I/SMESH_Mesh_i.cxx index 2fc681ef5..4e442a7a0 100644 --- a/src/SMESH_I/SMESH_Mesh_i.cxx +++ b/src/SMESH_I/SMESH_Mesh_i.cxx @@ -3785,8 +3785,8 @@ CORBA::LongLong SMESH_Mesh_i::ExportMEDCoupling(CORBA::Boolean auto_groups, CORB MEDCoupling::MCAuto data; SMESH_TRY; // TODO : Fix me ! 2 next lines are required - //if( !this->_gen_i->IsEmbeddedMode() ) - // SMESH::throwCorbaException("SMESH_Mesh_i::ExportMEDCoupling : only for embedded mode !"); + if( !this->_gen_i->isSSLMode() ) + SMESH::throwCorbaException("SMESH_Mesh_i::ExportMEDCoupling : only for embedded mode !"); if ( _preMeshInfo ) _preMeshInfo->FullLoadFromFile();