X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FMEDWrapper%2FMED_Structures.cxx;h=c04113bc43a3a4d7e3a16e80243b606d945cb532;hp=1b0cbd59ef66cc274b99c077a640a109d21bae4a;hb=88ff35ddd4a4442397bc5f6ba893aaf9c51b1856;hpb=96b56d1ee6cac6144b4cb376187ec7c21be4ae51 diff --git a/src/MEDWrapper/MED_Structures.cxx b/src/MEDWrapper/MED_Structures.cxx index 1b0cbd59e..c04113bc4 100644 --- a/src/MEDWrapper/MED_Structures.cxx +++ b/src/MEDWrapper/MED_Structures.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2020 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2021 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -141,7 +141,8 @@ namespace MED TElemInfo ::SetElemNum(TInt theId, TInt theVal) { - (*myElemNum)[theId] = theVal; + if ( IsElemNum() ) + (*myElemNum)[theId] = theVal; } //---------------------------------------------------------------