mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-01 04:10:33 +05:00
PAL21729 TC5.1.4: Problem with saving study after "Convert to quadratic" operation
* Protect Save() from pb with submeshes with invalid id (without corresponding shape)
This commit is contained in:
parent
e2089449ad
commit
3ba7955c3b
@ -3048,6 +3048,8 @@ SALOMEDS::TMPFile* SMESH_Gen_i::Save( SALOMEDS::SComponent_ptr theComponent,
|
||||
if ( nbNodes == 0 ) continue;
|
||||
|
||||
int aShapeID = (*itSubM).first;
|
||||
if ( aShapeID < 1 || aShapeID > mySMESHDSMesh->MaxShapeIndex() )
|
||||
continue;
|
||||
int aShapeType = mySMESHDSMesh->IndexToShape( aShapeID ).ShapeType();
|
||||
// write only SMDS_FacePosition and SMDS_EdgePosition
|
||||
switch ( aShapeType ) {
|
||||
|
Loading…
Reference in New Issue
Block a user