From: dmv Date: Mon, 8 Jun 2009 13:20:36 +0000 (+0000) Subject: IPAL21164 TC5.1.2: Regression. Not all created 1D and 2D elements are restored from... X-Git-Tag: V5_1_2rc2~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8bdfcf6b27dd18013ab978a04d437c65beb8cbca;p=modules%2Fsmesh.git IPAL21164 TC5.1.2: Regression. Not all created 1D and 2D elements are restored from saved “*.hdf” file --- diff --git a/src/SMESH_I/SMESH_Gen_i.cxx b/src/SMESH_I/SMESH_Gen_i.cxx index 2e15edca3..5fa5b3e31 100644 --- a/src/SMESH_I/SMESH_Gen_i.cxx +++ b/src/SMESH_I/SMESH_Gen_i.cxx @@ -3753,7 +3753,7 @@ bool SMESH_Gen_i::Load( SALOMEDS::SComponent_ptr theComponent, int smID = smIDs[ i ]; if ( smID == 0 ) continue; const SMDS_MeshElement* elem = *iE; - if( smID >= maxID ) { + if( smID > maxID ) { // corresponding subshape no longer exists: maybe geom group has been edited if ( myNewMeshImpl->HasShapeToMesh() ) mySMESHDSMesh->RemoveElement( elem );