mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-05 22:30: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;
|
if ( nbNodes == 0 ) continue;
|
||||||
|
|
||||||
int aShapeID = (*itSubM).first;
|
int aShapeID = (*itSubM).first;
|
||||||
|
if ( aShapeID < 1 || aShapeID > mySMESHDSMesh->MaxShapeIndex() )
|
||||||
|
continue;
|
||||||
int aShapeType = mySMESHDSMesh->IndexToShape( aShapeID ).ShapeType();
|
int aShapeType = mySMESHDSMesh->IndexToShape( aShapeID ).ShapeType();
|
||||||
// write only SMDS_FacePosition and SMDS_EdgePosition
|
// write only SMDS_FacePosition and SMDS_EdgePosition
|
||||||
switch ( aShapeType ) {
|
switch ( aShapeType ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user