IPAL21164 TC5.1.2: Regression. Not all created 1D and 2D elements are restored from saved “*.hdf” file

This commit is contained in:
dmv 2009-06-08 13:20:36 +00:00
parent 15aa1938cc
commit 8bdfcf6b27

View File

@ -3753,7 +3753,7 @@ bool SMESH_Gen_i::Load( SALOMEDS::SComponent_ptr theComponent,
int smID = smIDs[ i ]; int smID = smIDs[ i ];
if ( smID == 0 ) continue; if ( smID == 0 ) continue;
const SMDS_MeshElement* elem = *iE; const SMDS_MeshElement* elem = *iE;
if( smID >= maxID ) { if( smID > maxID ) {
// corresponding subshape no longer exists: maybe geom group has been edited // corresponding subshape no longer exists: maybe geom group has been edited
if ( myNewMeshImpl->HasShapeToMesh() ) if ( myNewMeshImpl->HasShapeToMesh() )
mySMESHDSMesh->RemoveElement( elem ); mySMESHDSMesh->RemoveElement( elem );