X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FMEDWrapper%2FMED_Structures.cxx;h=5749dc8869f03c91d44d12dc75a4b6dc5a4b13ac;hp=bca82e0ff07ace02b7283fdc7742ee4ad55373da;hb=499f29d24922cec66e41b41a0039a954993bc6df;hpb=b24a2d1b7692bdb21cf037b026e0273ba547cef4 diff --git a/src/MEDWrapper/MED_Structures.cxx b/src/MEDWrapper/MED_Structures.cxx index bca82e0ff..5749dc886 100644 --- a/src/MEDWrapper/MED_Structures.cxx +++ b/src/MEDWrapper/MED_Structures.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2021 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2022 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; } //---------------------------------------------------------------