mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-12 00:29:17 +05:00
Avoid too often Standard_OutOfRange
This commit is contained in:
parent
9c9403c272
commit
12d0e1ecd2
@ -1376,7 +1376,8 @@ const TopoDS_Shape& SMESHDS_Mesh::IndexToShape(int ShapeIndex) const
|
||||
{
|
||||
try
|
||||
{
|
||||
return myIndexToShape.FindKey(ShapeIndex);
|
||||
if ( ShapeIndex > 0 )
|
||||
return myIndexToShape.FindKey(ShapeIndex);
|
||||
}
|
||||
catch ( Standard_OutOfRange )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user